Skip to content

Commit eec1108

Browse files
author
AWS
committed
Amazon EC2 Container Registry Update: Released two new APIs along with documentation updates. The GetAccountSetting API is used to view the current basic scan type version setting for your registry, while the PutAccountSetting API is used to update the basic scan type version for your registry.
1 parent 3936b71 commit eec1108

File tree

2 files changed

+99
-3
lines changed

2 files changed

+99
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon EC2 Container Registry",
4+
"contributor": "",
5+
"description": "Released two new APIs along with documentation updates. The GetAccountSetting API is used to view the current basic scan type version setting for your registry, while the PutAccountSetting API is used to update the basic scan type version for your registry."
6+
}

services/ecr/src/main/resources/codegen-resources/service-2.json

Lines changed: 93 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,21 @@
367367
],
368368
"documentation":"<p>Returns details about the repository creation templates in a registry. The <code>prefixes</code> request parameter can be used to return the details for a specific repository creation template.</p>"
369369
},
370+
"GetAccountSetting":{
371+
"name":"GetAccountSetting",
372+
"http":{
373+
"method":"POST",
374+
"requestUri":"/"
375+
},
376+
"input":{"shape":"GetAccountSettingRequest"},
377+
"output":{"shape":"GetAccountSettingResponse"},
378+
"errors":[
379+
{"shape":"ServerException"},
380+
{"shape":"ValidationException"},
381+
{"shape":"InvalidParameterException"}
382+
],
383+
"documentation":"<p>Retrieves the basic scan type version name.</p>"
384+
},
370385
"GetAuthorizationToken":{
371386
"name":"GetAuthorizationToken",
372387
"http":{
@@ -526,6 +541,22 @@
526541
],
527542
"documentation":"<p>List the tags for an Amazon ECR resource.</p>"
528543
},
544+
"PutAccountSetting":{
545+
"name":"PutAccountSetting",
546+
"http":{
547+
"method":"POST",
548+
"requestUri":"/"
549+
},
550+
"input":{"shape":"PutAccountSettingRequest"},
551+
"output":{"shape":"PutAccountSettingResponse"},
552+
"errors":[
553+
{"shape":"ServerException"},
554+
{"shape":"ValidationException"},
555+
{"shape":"InvalidParameterException"},
556+
{"shape":"LimitExceededException"}
557+
],
558+
"documentation":"<p>Allows you to change the basic scan type version by setting the <code>name</code> parameter to either <code>CLAIR</code> to <code>AWS_NATIVE</code>.</p>"
559+
},
529560
"PutImage":{
530561
"name":"PutImage",
531562
"http":{
@@ -798,6 +829,12 @@
798829
}
799830
},
800831
"shapes":{
832+
"AccountSettingName":{
833+
"type":"string",
834+
"max":64,
835+
"min":1
836+
},
837+
"AccountSettingValue":{"type":"string"},
801838
"Arch":{"type":"string"},
802839
"Arn":{"type":"string"},
803840
"Attribute":{
@@ -1184,7 +1221,7 @@
11841221
},
11851222
"customRoleArn":{
11861223
"shape":"CustomRoleArn",
1187-
"documentation":"<p>The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring.</p>"
1224+
"documentation":"<p>The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.</p>"
11881225
}
11891226
}
11901227
},
@@ -1895,6 +1932,29 @@
18951932
"value":{"shape":"SeverityCount"}
18961933
},
18971934
"ForceFlag":{"type":"boolean"},
1935+
"GetAccountSettingRequest":{
1936+
"type":"structure",
1937+
"required":["name"],
1938+
"members":{
1939+
"name":{
1940+
"shape":"AccountSettingName",
1941+
"documentation":"<p>Basic scan type version name. </p>"
1942+
}
1943+
}
1944+
},
1945+
"GetAccountSettingResponse":{
1946+
"type":"structure",
1947+
"members":{
1948+
"name":{
1949+
"shape":"AccountSettingName",
1950+
"documentation":"<p>Retrieves the basic scan type version name.</p>"
1951+
},
1952+
"value":{
1953+
"shape":"AccountSettingName",
1954+
"documentation":"<p>Retrieves the value that specifies what basic scan type is being used: <code>AWS_NATIVE</code> or <code>CLAIR</code>.</p>"
1955+
}
1956+
}
1957+
},
18981958
"GetAuthorizationTokenRegistryIdList":{
18991959
"type":"list",
19001960
"member":{"shape":"RegistryId"},
@@ -3024,6 +3084,36 @@
30243084
"min":1
30253085
},
30263086
"PushTimestamp":{"type":"timestamp"},
3087+
"PutAccountSettingRequest":{
3088+
"type":"structure",
3089+
"required":[
3090+
"name",
3091+
"value"
3092+
],
3093+
"members":{
3094+
"name":{
3095+
"shape":"AccountSettingName",
3096+
"documentation":"<p>Basic scan type version name. </p>"
3097+
},
3098+
"value":{
3099+
"shape":"AccountSettingValue",
3100+
"documentation":"<p>Setting value that determines what basic scan type is being used: <code>AWS_NATIVE</code> or <code>CLAIR</code>.</p>"
3101+
}
3102+
}
3103+
},
3104+
"PutAccountSettingResponse":{
3105+
"type":"structure",
3106+
"members":{
3107+
"name":{
3108+
"shape":"AccountSettingName",
3109+
"documentation":"<p>Retrieves the the basic scan type version name.</p>"
3110+
},
3111+
"value":{
3112+
"shape":"AccountSettingValue",
3113+
"documentation":"<p>Retrieves the basic scan type value, either <code>AWS_NATIVE</code> or <code>-</code>.</p>"
3114+
}
3115+
}
3116+
},
30273117
"PutImageRequest":{
30283118
"type":"structure",
30293119
"required":[
@@ -3509,7 +3599,7 @@
35093599
},
35103600
"customRoleArn":{
35113601
"shape":"CustomRoleArn",
3512-
"documentation":"<p>The ARN of the role to be assumed by Amazon ECR.</p>"
3602+
"documentation":"<p>The ARN of the role to be assumed by Amazon ECR. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.</p>"
35133603
},
35143604
"createdAt":{
35153605
"shape":"Date",
@@ -4184,7 +4274,7 @@
41844274
},
41854275
"customRoleArn":{
41864276
"shape":"CustomRoleArn",
4187-
"documentation":"<p>The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring.</p>"
4277+
"documentation":"<p>The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.</p>"
41884278
}
41894279
}
41904280
},

0 commit comments

Comments
 (0)