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

Add AWS ACM Java V2 files #7014

Merged
merged 8 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions .doc_gen/metadata/acm_metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# zexi 0.4.0
acm_DescribeCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.describe_cert.main
.NET:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -52,6 +61,15 @@ acm_GetCertificate:
acm: {GetCertificate}
acm_ListCertificates:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.list_certs.main
.NET:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -82,6 +100,15 @@ acm_ListCertificates:
acm: {ListCertificates}
acm_ImportCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.import_cert.main
Python:
versions:
- sdk_version: 3
Expand All @@ -103,6 +130,15 @@ acm_ImportCertificate:
acm: {ImportCertificate}
acm_DeleteCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.del_cert.main
Python:
versions:
- sdk_version: 3
Expand All @@ -124,6 +160,15 @@ acm_DeleteCertificate:
acm: {DeleteCertificate}
acm_AddTagsToCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.add_tags.main
Python:
versions:
- sdk_version: 3
Expand All @@ -145,6 +190,15 @@ acm_AddTagsToCertificate:
acm: {AddTagsToCertificate}
acm_ExportCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.export_cert.main
C++:
versions:
- sdk_version: 1
Expand All @@ -157,6 +211,15 @@ acm_ExportCertificate:
acm: {ExportCertificate}
acm_ListTagsForCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.list_cert_tags.main
Python:
versions:
- sdk_version: 3
Expand All @@ -178,6 +241,15 @@ acm_ListTagsForCertificate:
acm: {ListTagsForCertificate}
acm_RemoveTagsFromCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.remove_tags.main
Python:
versions:
- sdk_version: 3
Expand All @@ -199,6 +271,15 @@ acm_RemoveTagsFromCertificate:
acm: {RemoveTagsFromCertificate}
acm_RequestCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.request_cert.main
Python:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -241,6 +322,15 @@ acm_ResendValidationEmail:
acm: {ResendValidationEmail}
acm_RenewCertificate:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/acm
sdkguide:
excerpts:
- description:
snippet_tags:
- acm.java2.renew_cert.main
C++:
versions:
- sdk_version: 1
Expand Down
2 changes: 2 additions & 0 deletions .doc_gen/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ allow_list:
- "aws/s3/model/AbortMultipartUploadRequest"
- "src/main/kotlin/com/example/ecr/HelloECR"
- "aws/ec2/model/DisassociateAddressRequest"
- "src/main/java/com/example/acm/DeleteCert"
- "src/main/java/com/example/acm/ImportCert"
sample_files:
- "README.md"
- "chat_sfn_state_machine.json"
Expand Down
38 changes: 38 additions & 0 deletions javav2/example_code/acm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
87 changes: 87 additions & 0 deletions javav2/example_code/acm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# ACM code examples for the SDK for Java 2.x

## Overview

Shows how to use the AWS SDK for Java 2.x to work with AWS Certificate Manager (ACM).

<!--custom.overview.start-->
<!--custom.overview.end-->

_ACM helps you to provision, manage, and renew publicly trusted TLS certificates on AWS based websites._

## ⚠ Important

* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/).
* Running the tests might result in charges to your AWS account.
* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege).
* This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services).

<!--custom.important.start-->
<!--custom.important.end-->

## Code examples

### Prerequisites

For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav2` folder.


<!--custom.prerequisites.start-->
<!--custom.prerequisites.end-->

### Single actions

Code excerpts that show you how to call individual service functions.

- [AddTagsToCertificate](src/main/java/com/example/acm/AddTagsToCertificate.java#L12)
- [DeleteCertificate](src/main/java/com/example/acm/DeleteCert.java#L10)
- [DescribeCertificate](src/main/java/com/example/acm/DescribeCert.java#L11)
- [ExportCertificate](src/main/java/com/example/acm/ExportCertificate.java#L20)
- [ImportCertificate](src/main/java/com/example/acm/ImportCert.java#L16)
- [ListCertificates](src/main/java/com/example/acm/ListCerts.java#L12)
- [ListTagsForCertificate](src/main/java/com/example/acm/ListCertTags.java#L13)
- [RemoveTagsFromCertificate](src/main/java/com/example/acm/RemoveTagsFromCert.java#L13)
- [RenewCertificate](src/main/java/com/example/acm/RenewCert.java#L10)
- [RequestCertificate](src/main/java/com/example/acm/RequestCert.java#L12)


<!--custom.examples.start-->
<!--custom.examples.end-->

## Run the examples

### Instructions


<!--custom.instructions.start-->
<!--custom.instructions.end-->



### Tests

⚠ Running tests might result in charges to your AWS account.


To find instructions for running these tests, see the [README](../../README.md#Tests)
in the `javav2` folder.



<!--custom.tests.start-->
<!--custom.tests.end-->

## Additional resources

- [ACM User Guide](https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html)
- [ACM API Reference](https://docs.aws.amazon.com/acm/latest/APIReference/Welcome.html)
- [SDK for Java 2.x ACM reference](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/ec2/package-summary.html)

<!--custom.resources.start-->
<!--custom.resources.end-->

---

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
Loading
Loading