Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/aws_pinpointsmsvoicev2_phone_number - new resource #25036

Merged

Conversation

JamesMarino
Copy link
Contributor

This PR adds a new AWS service pinpointsmsvoicev2 and new resources aws_pinpointsmsvoicev2_phone_number and aws_pinpointsmsvoicev2_opt_out_list.

Note: aws_pinpointsmsvoicev2_opt_out_list was added as it is a dependant of aws_pinpointsmsvoicev2_phone_number in its tests.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #24855

Output from acceptance testing:

$ make testacc PKG=pinpointsmsvoicev2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/pinpointsmsvoicev2/... -v -count 1 -parallel 20   -timeout 180m
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_basic
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_basic
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_disappears
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_disappears
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_full
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_full
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_disappears
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_disappears
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_basic
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_full
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_disappears
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_disappears
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_disappears (10.15s)
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_basic (14.02s)
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_full (24.11s)
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_basic (25.03s)
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_disappears (31.44s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/pinpointsmsvoicev2 33.707s

@github-actions github-actions bot added client-connections Pertains to the AWS Client and service connections. documentation Introduces or discusses updates to documentation. generators Relates to code generators. github_actions Pull requests that update Github_actions code provider Pertains to the provider itself, rather than any interaction with AWS. repository Repository modifications; GitHub Actions, developer docs, issue templates, codeowners, changelog. tags Pertains to resource tagging. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XL Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. labels May 25, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @JamesMarino 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels May 25, 2022
@ewbankkit ewbankkit added the service/pinpointsmsvoice Issues and PRs that pertain to the pinpointsmsvoice service. label Aug 4, 2022
@JamesMarino
Copy link
Contributor Author

JamesMarino commented Jan 12, 2023

Any news on whether we can get this merged in or if there was any feedback? Happy to fix up the conflicts.

@cemo
Copy link

cemo commented Dec 20, 2023

@jar-b can you please assign this for review? I would like to send PRs to close other missing resources on pinpoint. Thanks

@dabmajor
Copy link

Is someone going to pick this back up? I've currently implemented a solution using null_resources and external data resources; however, bringing this back to a standard terraform provider would be fantastic :)

@ewbankkit ewbankkit self-assigned this Sep 13, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Sep 13, 2024
@ewbankkit
Copy link
Contributor

@dabmajor This in on the maintainers' roadmap for this quarter.

# Conflicts:
#	.github/labeler-issue-triage.yml
#	.github/labeler-pr-triage.yml
#	infrastructure/repository/labels-service.tf
#	internal/conns/awsclient_gen.go
#	internal/conns/config_gen.go
#	internal/provider/provider.go
#	names/consts_gen.go
#	names/names_data.csv
#	website/allowed-subcategories.txt
#	website/docs/guides/custom-service-endpoints.html.markdown
Copy link

Thank you for your contribution! 🚀

Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the go.mod or go.sum files and commit them into this pull request.

Additional details:

  • Check open pull requests with the dependencies label to view other dependency updates.
  • If this pull request includes an update the AWS Go SDK (or any other dependency) version, only updates submitted via dependabot will be merged. This pull request will need to remove these changes and will need to be rebased after the existing dependency update via dependabot has been merged for this pull request to be reviewed.
  • If this pull request is for supporting a new AWS service:
    • Ensure the new AWS service changes are following the Contributing Guide section on new services, in particular that the dependency addition and initial provider support are in a separate pull request from other changes (e.g. new resources). Contributions not following this item will not be reviewed until the changes are split.
    • If this pull request is already a separate pull request from the above item, you can ignore this message.

% make testacc TESTARGS='-run=TestAccPinpointSMSVoiceV2OptOutList_' PKG=pinpointsmsvoicev2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/pinpointsmsvoicev2/... -v -count 1 -parallel 20  -run=TestAccPinpointSMSVoiceV2OptOutList_ -timeout 360m
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_basic
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_basic
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_disappears
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_disappears
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_tags
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_tags
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_basic
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_tags
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_disappears
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_disappears (13.50s)
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_basic (15.71s)
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_tags (33.37s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/pinpointsmsvoicev2	38.259s
% make testacc TESTARGS='-run=TestAccPinpointSMSVoiceV2PhoneNumber_' PKG=pinpointsmsvoicev2 ACCTEST_PARALLELISM=2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/pinpointsmsvoicev2/... -v -count 1 -parallel 2  -run=TestAccPinpointSMSVoiceV2PhoneNumber_ -timeout 360m
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_full
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_full
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_disappears
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_disappears
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_tags
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_tags
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_disappears
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_basic (19.22s)
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_full
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_disappears (25.43s)
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_tags
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_full (33.86s)
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_tags (36.83s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/pinpointsmsvoicev2	67.075s
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccPinpointSMSVoiceV2OptOutList_' PKG=pinpointsmsvoicev2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/pinpointsmsvoicev2/... -v -count 1 -parallel 20  -run=TestAccPinpointSMSVoiceV2OptOutList_ -timeout 360m
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_basic
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_basic
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_disappears
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_disappears
=== RUN   TestAccPinpointSMSVoiceV2OptOutList_tags
=== PAUSE TestAccPinpointSMSVoiceV2OptOutList_tags
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_basic
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_tags
=== CONT  TestAccPinpointSMSVoiceV2OptOutList_disappears
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_disappears (11.53s)
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_basic (14.10s)
--- PASS: TestAccPinpointSMSVoiceV2OptOutList_tags (30.27s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/pinpointsmsvoicev2	35.355s
% make testacc TESTARGS='-run=TestAccPinpointSMSVoiceV2PhoneNumber_' PKG=pinpointsmsvoicev2 ACCTEST_PARALLELISM=2 
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/pinpointsmsvoicev2/... -v -count 1 -parallel 2  -run=TestAccPinpointSMSVoiceV2PhoneNumber_ -timeout 360m
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_full
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_full
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_disappears
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_disappears
=== RUN   TestAccPinpointSMSVoiceV2PhoneNumber_tags
=== PAUSE TestAccPinpointSMSVoiceV2PhoneNumber_tags
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_basic
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_disappears
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_basic (17.39s)
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_tags
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_disappears (21.77s)
=== CONT  TestAccPinpointSMSVoiceV2PhoneNumber_full
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_full (29.72s)
--- PASS: TestAccPinpointSMSVoiceV2PhoneNumber_tags (36.11s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/pinpointsmsvoicev2	58.481s

@ewbankkit ewbankkit merged commit 81a5e59 into hashicorp:main Sep 16, 2024
49 checks passed
@github-actions github-actions bot added this to the v5.68.0 milestone Sep 16, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Sep 20, 2024
Copy link

This functionality has been released in v5.68.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client-connections Pertains to the AWS Client and service connections. documentation Introduces or discusses updates to documentation. generators Relates to code generators. github_actions Pull requests that update Github_actions code new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. repository Repository modifications; GitHub Actions, developer docs, issue templates, codeowners, changelog. service/pinpointsmsvoice Issues and PRs that pertain to the pinpointsmsvoice service. size/XL Managed by automation to categorize the size of a PR. tags Pertains to resource tagging. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new AWS Pinpoint resource aws_pinpoint_phone_number
5 participants