Skip to content

Commit

Permalink
feat(client-managedblockchain): This release adds support for tagging…
Browse files Browse the repository at this point in the history
… to the accessor resource in Amazon Managed Blockchain
  • Loading branch information
awstools committed Feb 28, 2023
1 parent b623f24 commit 82de475
Show file tree
Hide file tree
Showing 10 changed files with 4,958 additions and 4,845 deletions.
32 changes: 6 additions & 26 deletions clients/client-managedblockchain/src/ManagedBlockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,12 @@ import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
/**
* <p></p>
* <p>Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open-source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority.</p>
* <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> don't apply to Ethereum.</p>
* <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
* <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> don't apply to Ethereum.</p>
* <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
*/
export class ManagedBlockchain extends ManagedBlockchainClient {
/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor object is a container that has the information
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor contains information
* required for token based access to your Ethereum nodes.</p>
*/
public createAccessor(
Expand Down Expand Up @@ -263,12 +258,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
}

/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
* information required for token based access to your Ethereum nodes including, the
* <code>BILLING_TOKEN</code>. After an accessor is deleted, the status of the accessor changes
* from <code>AVAILABLE</code> to <code>PENDING_DELETION</code>. An accessor in the
Expand Down Expand Up @@ -363,12 +353,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
}

/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Returns detailed information about an accessor. An accessor object is a container that has the
* <p>Returns detailed information about an accessor. An accessor object is a container that has the
* information required for token based access to your Ethereum nodes.</p>
*/
public getAccessor(args: GetAccessorCommandInput, options?: __HttpHandlerOptions): Promise<GetAccessorCommandOutput>;
Expand Down Expand Up @@ -503,12 +488,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
}

/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
* information required for token based access to your Ethereum nodes.</p>
*/
public listAccessors(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ export interface ManagedBlockchainClientResolvedConfig extends ManagedBlockchain
/**
* <p></p>
* <p>Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open-source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority.</p>
* <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> don't apply to Ethereum.</p>
* <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
* <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> don't apply to Ethereum.</p>
* <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
*/
export class ManagedBlockchainClient extends __Client<
__HttpHandlerOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export interface CreateAccessorCommandInput extends CreateAccessorInput {}
export interface CreateAccessorCommandOutput extends CreateAccessorOutput, __MetadataBearer {}

/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor object is a container that has the information
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor contains information
* required for token based access to your Ethereum nodes.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export interface DeleteAccessorCommandInput extends DeleteAccessorInput {}
export interface DeleteAccessorCommandOutput extends DeleteAccessorOutput, __MetadataBearer {}

/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
* information required for token based access to your Ethereum nodes including, the
* <code>BILLING_TOKEN</code>. After an accessor is deleted, the status of the accessor changes
* from <code>AVAILABLE</code> to <code>PENDING_DELETION</code>. An accessor in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export interface GetAccessorCommandInput extends GetAccessorInput {}
export interface GetAccessorCommandOutput extends GetAccessorOutput, __MetadataBearer {}

/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Returns detailed information about an accessor. An accessor object is a container that has the
* <p>Returns detailed information about an accessor. An accessor object is a container that has the
* information required for token based access to your Ethereum nodes.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export interface ListAccessorsCommandInput extends ListAccessorsInput {}
export interface ListAccessorsCommandOutput extends ListAccessorsOutput, __MetadataBearer {}

/**
* <important>
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
* subject to change. We recommend that you use this feature only with
* test scenarios, and not in production environments.</p>
* </important>
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
* information required for token based access to your Ethereum nodes.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
35 changes: 18 additions & 17 deletions clients/client-managedblockchain/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/managedblockchain.json */

const p="required",
q="fn",
r="argv",
s="ref";
const a="PartitionResult",
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e={[p]:false,"type":"String"},
f={[p]:true,"default":false,"type":"Boolean"},
g={[s]:"Endpoint"},
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
j={},
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
m=[g],
n=[h],
o=[i];
const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://managedblockchain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://managedblockchain-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]};
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://managedblockchain-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:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://managedblockchain-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit 82de475

Please sign in to comment.