Skip to content

Commit

Permalink
feat(client-service-catalog-appregistry): In this release, we started…
Browse files Browse the repository at this point in the history
… supporting ARN in applicationSpecifier and attributeGroupSpecifier. GetAttributeGroup, ListAttributeGroups and ListAttributeGroupsForApplication APIs will now have CreatedBy field in the response.
  • Loading branch information
awstools committed Mar 27, 2023
1 parent 9284e20 commit 8add959
Show file tree
Hide file tree
Showing 16 changed files with 974 additions and 1,120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,14 @@ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {

/**
* @public
* <p>Associates a resource with an application. Both the resource and the application can be specified either by ID or name.</p>
* <p>
* Associates a resource
* with an application.
* The resource can be specified
* by its ARN or name.
* The application can be specified
* by ARN, ID, or name.
* </p>
*/
public associateResource(
args: AssociateResourceCommandInput,
Expand Down Expand Up @@ -263,7 +270,7 @@ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {

/**
* @public
* <p>Deletes an application that is specified either by its application ID or name. All associated attribute groups and resources must be disassociated from it before deleting an application.</p>
* <p>Deletes an application that is specified either by its application ID, name, or ARN. All associated attribute groups and resources must be disassociated from it before deleting an application.</p>
*/
public deleteApplication(
args: DeleteApplicationCommandInput,
Expand Down Expand Up @@ -296,7 +303,7 @@ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {

/**
* @public
* <p>Deletes an attribute group, specified either by its attribute group ID or name.</p>
* <p>Deletes an attribute group, specified either by its attribute group ID, name, or ARN.</p>
*/
public deleteAttributeGroup(
args: DeleteAttributeGroupCommandInput,
Expand Down Expand Up @@ -395,7 +402,25 @@ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {

/**
* @public
* <p>Retrieves metadata information about one of your applications. The application can be specified either by its unique ID or by its name (which is unique within one account in one region at a given point in time). Specify by ID in automated workflows if you want to make sure that the exact same application is returned or a <code>ResourceNotFoundException</code> is thrown, avoiding the ABA addressing problem.</p>
* <p>
* Retrieves metadata information
* about one
* of your applications.
* The application can be specified
* by its ARN, ID, or name
* (which is unique
* within one account
* in one region
* at a given point
* in time).
* Specify
* by ARN or ID
* in automated workflows
* if you want
* to make sure
* that the exact same application is returned or a <code>ResourceNotFoundException</code> is thrown,
* avoiding the ABA addressing problem.
* </p>
*/
public getApplication(
args: GetApplicationCommandInput,
Expand Down Expand Up @@ -461,7 +486,12 @@ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {

/**
* @public
* <p>Retrieves an attribute group, either by its name or its ID. The attribute group can be specified either by its unique ID or by its name.</p>
* <p>
* Retrieves an attribute group
* by its ARN, ID, or name.
* The attribute group can be specified
* by its ARN, ID, or name.
* </p>
*/
public getAttributeGroup(
args: GetAttributeGroupCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ export interface AssociateAttributeGroupCommandOutput extends AssociateAttribute
* <p>The specified resource does not exist.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>The maximum number of resources per account has been reached.</p>
* <p>
* The maximum number
* of resources per account
* has been reached.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>The request has invalid or missing parameters.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ export interface AssociateResourceCommandOutput extends AssociateResourceRespons

/**
* @public
* <p>Associates a resource with an application. Both the resource and the application can be specified either by ID or name.</p>
* <p>
* Associates a resource
* with an application.
* The resource can be specified
* by its ARN or name.
* The application can be specified
* by ARN, ID, or name.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -72,7 +79,17 @@ export interface AssociateResourceCommandOutput extends AssociateResourceRespons
* <p>The specified resource does not exist.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>The maximum number of resources per account has been reached.</p>
* <p>
* The maximum number
* of resources per account
* has been reached.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>
* The maximum number
* of API requests
* has been exceeded.
* </p>
*
* @throws {@link ValidationException} (client fault)
* <p>The request has invalid or missing parameters.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,17 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
* <p>The service is experiencing internal problems.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>The maximum number of resources per account has been reached.</p>
* <p>
* The maximum number
* of resources per account
* has been reached.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>
* The maximum number
* of API requests
* has been exceeded.
* </p>
*
* @throws {@link ValidationException} (client fault)
* <p>The request has invalid or missing parameters.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ export interface CreateAttributeGroupCommandOutput extends CreateAttributeGroupR
* <p>The service is experiencing internal problems.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>The maximum number of resources per account has been reached.</p>
* <p>
* The maximum number
* of resources per account
* has been reached.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>The request has invalid or missing parameters.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface DeleteApplicationCommandOutput extends DeleteApplicationRespons

/**
* @public
* <p>Deletes an application that is specified either by its application ID or name. All associated attribute groups and resources must be disassociated from it before deleting an application.</p>
* <p>Deletes an application that is specified either by its application ID, name, or ARN. All associated attribute groups and resources must be disassociated from it before deleting an application.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface DeleteAttributeGroupCommandOutput extends DeleteAttributeGroupR

/**
* @public
* <p>Deletes an attribute group, specified either by its attribute group ID or name.</p>
* <p>Deletes an attribute group, specified either by its attribute group ID, name, or ARN.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ export interface DisassociateResourceCommandOutput extends DisassociateResourceR
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource does not exist.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>
* The maximum number
* of API requests
* has been exceeded.
* </p>
*
* @throws {@link ValidationException} (client fault)
* <p>The request has invalid or missing parameters.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,25 @@ export interface GetApplicationCommandOutput extends GetApplicationResponse, __M

/**
* @public
* <p>Retrieves metadata information about one of your applications. The application can be specified either by its unique ID or by its name (which is unique within one account in one region at a given point in time). Specify by ID in automated workflows if you want to make sure that the exact same application is returned or a <code>ResourceNotFoundException</code> is thrown, avoiding the ABA addressing problem.</p>
* <p>
* Retrieves metadata information
* about one
* of your applications.
* The application can be specified
* by its ARN, ID, or name
* (which is unique
* within one account
* in one region
* at a given point
* in time).
* Specify
* by ARN or ID
* in automated workflows
* if you want
* to make sure
* that the exact same application is returned or a <code>ResourceNotFoundException</code> is thrown,
* avoiding the ABA addressing problem.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ export interface GetAttributeGroupCommandOutput extends GetAttributeGroupRespons

/**
* @public
* <p>Retrieves an attribute group, either by its name or its ID. The attribute group can be specified either by its unique ID or by its name.</p>
* <p>
* Retrieves an attribute group
* by its ARN, ID, or name.
* The attribute group can be specified
* by its ARN, ID, or name.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ export interface SyncResourceCommandOutput extends SyncResourceResponse, __Metad
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource does not exist.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>
* The maximum number
* of API requests
* has been exceeded.
* </p>
*
* @throws {@link ValidationException} (client fault)
* <p>The request has invalid or missing parameters.</p>
*
*
*/
export class SyncResourceCommand extends $Command<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource does not exist.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>
* The maximum number
* of API requests
* has been exceeded.
* </p>
*
* @throws {@link ValidationException} (client fault)
* <p>The request has invalid or missing parameters.</p>
*
Expand Down
32 changes: 16 additions & 16 deletions clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ const s="required",
t="fn",
u="argv",
v="ref";
const a="PartitionResult",
const a="isSet",
b="tree",
c="error",
d="endpoint",
e="getAttr",
f={[s]:false,"type":"String"},
g={[s]:true,"default":false,"type":"Boolean"},
h={[v]:"Endpoint"},
i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]},
j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]},
k={},
l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]},
m={[v]:a},
n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]},
o={"url":"https://servicecatalog-appregistry.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}},
p=[h],
q=[i],
r=[j];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://servicecatalog-appregistry.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]};
e="PartitionResult",
f="getAttr",
g={[s]:false,"type":"String"},
h={[s]:true,"default":false,"type":"Boolean"},
i={[v]:"Endpoint"},
j={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]},
k={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]},
l={},
m={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[{[v]:e},"supportsFIPS"]}]},
n={[v]:e},
o={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[n,"supportsDualStack"]}]},
p=[j],
q=[k],
r=[{[v]:"Region"}];
const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[t]:a,[u]:[i]}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{type:b,rules:[{conditions:[{[t]:a,[u]:r}],type:b,rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:e}],type:b,rules:[{conditions:[j,k],type:b,rules:[{conditions:[m,o],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:f,[u]:[n,"name"]}]}],endpoint:{url:"https://servicecatalog-appregistry.{Region}.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[o],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://servicecatalog-appregistry.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://servicecatalog-appregistry.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit 8add959

Please sign in to comment.