Skip to content

Commit

Permalink
Merge branch 'main' into write-updates-2
Browse files Browse the repository at this point in the history
  • Loading branch information
ford-at-aws authored Jul 8, 2024
2 parents 90832be + 9694c91 commit 10a409b
Show file tree
Hide file tree
Showing 23 changed files with 1,275 additions and 104 deletions.
104 changes: 103 additions & 1 deletion .doc_gen/metadata/ecr_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ ecr_Hello:
synopsis: get started using &ECR;.
category: Hello
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin_hello.main
Java:
versions:
- sdk_version: 2
Expand All @@ -18,6 +27,15 @@ ecr_Hello:
ecr: {listImages}
ecr_PushImageCmd:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.push.image.main
Java:
versions:
- sdk_version: 2
Expand All @@ -31,6 +49,15 @@ ecr_PushImageCmd:
ecr: {PushImageCmd}
ecr_SetRepositoryPolicy:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.set.repo.policy.main
Java:
versions:
- sdk_version: 2
Expand All @@ -44,6 +71,15 @@ ecr_SetRepositoryPolicy:
ecr: {SetRepositoryPolicy}
ecr_GetRepositoryPolicy:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.get.repo.policy.main
Java:
versions:
- sdk_version: 2
Expand All @@ -57,6 +93,15 @@ ecr_GetRepositoryPolicy:
ecr: {GetRepositoryPolicy}
ecr_GetAuthorizationToken:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.get.token.main
Java:
versions:
- sdk_version: 2
Expand All @@ -70,6 +115,15 @@ ecr_GetAuthorizationToken:
ecr: {GetAuthorizationToken}
ecr_StartLifecyclePolicyPreview:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.verify.image.main
Java:
versions:
- sdk_version: 2
Expand All @@ -83,6 +137,15 @@ ecr_StartLifecyclePolicyPreview:
ecr: {StartLifecyclePolicyPreview}
ecr_DescribeImages:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.verify.image.main
Java:
versions:
- sdk_version: 2
Expand All @@ -96,6 +159,15 @@ ecr_DescribeImages:
ecr: {DescribeImages}
ecr_DeleteRepository:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.delete.repo.main
Java:
versions:
- sdk_version: 2
Expand All @@ -109,6 +181,15 @@ ecr_DeleteRepository:
ecr: {DeleteRepository}
ecr_CreateRepository:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.create.repo.main
Java:
versions:
- sdk_version: 2
Expand All @@ -122,6 +203,15 @@ ecr_CreateRepository:
ecr: {CreateRepository}
ecr_DescribeRepositories:
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description:
snippet_tags:
- ecr.kotlin.describe.policy.main
Java:
versions:
- sdk_version: 2
Expand Down Expand Up @@ -170,10 +260,22 @@ ecr_Scenario_RepositoryManagement:
- Delete &ECR; repositories.
category: Scenarios
languages:
Kotlin:
versions:
- sdk_version: 1
github: kotlin/services/ecr
sdkguide:
excerpts:
- description: Run an interactive scenario demonstrating &ECR; features.
snippet_tags:
- ecr.kotlin_scenario.parent.main
- description: A wrapper class for &ECR; SDK methods.
snippet_tags:
- ecr.kotlin_scenario.main
Java:
versions:
- sdk_version: 2
github: javav2/example_code/kms
github: javav2/example_code/ecr
sdkguide:
excerpts:
- description: Run an interactive scenario demonstrating &ECR; features.
Expand Down
1 change: 1 addition & 0 deletions .doc_gen/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ allow_list:
- "v2/service/cognitoidentityprovider/types"
- "abortIncompleteMultipartUploadsOlderThan"
- "com/pinterest/ktlint/releases/download/1"
- "src/main/kotlin/com/example/ecr/HelloECR"
sample_files:
- "README.md"
- "chat_sfn_state_machine.json"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stats-lambda.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow executes a Lamdba function that records metrics for each merged PR.
# This workflow executes a Lamdba function that records metrics for each successfully merged PR.
#
# For more information, see:
# https://github.com/marketplace/actions/invoke-aws-lambda
Expand Down
2 changes: 1 addition & 1 deletion .tools/readmes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@
"sdk_api_ref": 'https://awscli.amazonaws.com/v2/documentation/api/latest/reference/{{service["name"]}}/index.html',
}
},
}
}
2 changes: 1 addition & 1 deletion .tools/readmes/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _transform_hello(self, pre_hello):
pre, self.sdk_ver, self.lang_config["service_folder"], api
),
"run_file": self.scanner.snippet(
pre, self.sdk_ver, self.lang_config["service_folder"], ''
pre, self.sdk_ver, self.lang_config["service_folder"], ""
),
"api": api,
}
Expand Down
19 changes: 9 additions & 10 deletions .tools/readmes/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ def hello(self):
self._load_examples()
hello = {}
for example_name, example in self.example_meta.items():
if (
example.get("category", "") == config.categories["hello"]
and self._contains_language_version(example)
):
if example.get("category", "") == config.categories[
"hello"
] and self._contains_language_version(example):
hello[example_name] = example
return hello

Expand All @@ -108,10 +107,9 @@ def scenarios(self):
self._load_examples()
scenarios = {}
for example_name, example in self.example_meta.items():
if (
example.get("category", "") == config.categories["scenarios"]
and self._contains_language_version(example)
):
if example.get("category", "") == config.categories[
"scenarios"
] and self._contains_language_version(example):
scenarios[example_name] = example
return scenarios

Expand All @@ -120,8 +118,9 @@ def custom_categories(self):
custom_cats = {}
for example_name, example in self.example_meta.items():
if (
example.get("category", "") and
example.get("category", "") not in {config.categories["scenarios"], config.categories["hello"]}
example.get("category", "")
and example.get("category", "")
not in {config.categories["scenarios"], config.categories["hello"]}
and self._contains_language_version(example)
):
custom_cats[example_name] = example
Expand Down
42 changes: 42 additions & 0 deletions kotlin/services/ecr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
Loading

0 comments on commit 10a409b

Please sign in to comment.