From e2bef3c624f078eaecf85b79a828c9d062121eb6 Mon Sep 17 00:00:00 2001 From: scmacdon Date: Wed, 27 Nov 2024 11:20:04 -0500 Subject: [PATCH] fixed a tag in a YAML file --- .doc_gen/metadata/s3-control_metadata.yaml | 4 ++-- .../java/com/example/s3/CreateGovernanceRetentionJob.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.doc_gen/metadata/s3-control_metadata.yaml b/.doc_gen/metadata/s3-control_metadata.yaml index dc082a299df..9db42e419bc 100644 --- a/.doc_gen/metadata/s3-control_metadata.yaml +++ b/.doc_gen/metadata/s3-control_metadata.yaml @@ -33,9 +33,9 @@ s3-control_CreateJob: - description: Create a legal hold off job. snippet_tags: - s3control.java2.create_job.compliance.main - - description: Create a new governance retemtion job. + - description: Create a new governance retention job. snippet_tags: - - s3.java2.create_governance_retemtion.main + - s3.java2.create_governance_retention.main services: s3-control: {CreateJob} s3-control_PutJobTagging: diff --git a/javav2/example_code/s3/src/main/java/com/example/s3/CreateGovernanceRetentionJob.java b/javav2/example_code/s3/src/main/java/com/example/s3/CreateGovernanceRetentionJob.java index 27bed92bb4f..8a492b52a1a 100644 --- a/javav2/example_code/s3/src/main/java/com/example/s3/CreateGovernanceRetentionJob.java +++ b/javav2/example_code/s3/src/main/java/com/example/s3/CreateGovernanceRetentionJob.java @@ -12,7 +12,7 @@ import java.util.Arrays; import java.util.Date; -// snippet-start:[s3.java2.create_governance_retemtion.main] +// snippet-start:[s3.java2.create_governance_retention.main] /** * Before running this Java V2 code example, set up your development * environment, including your credentials. @@ -37,7 +37,7 @@ public static void main(String[]args) throws ParseException { manifestObjectVersionId = A unique value that is used as the `eTag` property of the `JobManifestLocation` object. """; - if (args.length != 4) { + if (args.length != 5) { System.out.println(usage); return; } @@ -109,4 +109,4 @@ public static String createGovernanceRetentionJob(final S3ControlClient s3Contro return result.jobId(); } } -// snippet-end:[s3.java2.create_governance_retemtion.main] \ No newline at end of file +// snippet-end:[s3.java2.create_governance_retention.main] \ No newline at end of file