Skip to content

Commit 82de475

Browse files
author
awstools
committed
feat(client-managedblockchain): This release adds support for tagging to the accessor resource in Amazon Managed Blockchain
1 parent b623f24 commit 82de475

File tree

10 files changed

+4958
-4845
lines changed

10 files changed

+4958
-4845
lines changed

clients/client-managedblockchain/src/ManagedBlockchain.ts

+6-26
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,12 @@ import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
9797
/**
9898
* <p></p>
9999
* <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>
100-
* <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>
101-
* <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>
100+
* <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>
101+
* <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>
102102
*/
103103
export class ManagedBlockchain extends ManagedBlockchainClient {
104104
/**
105-
* <important>
106-
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
107-
* subject to change. We recommend that you use this feature only with
108-
* test scenarios, and not in production environments.</p>
109-
* </important>
110-
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor object is a container that has the information
105+
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor contains information
111106
* required for token based access to your Ethereum nodes.</p>
112107
*/
113108
public createAccessor(
@@ -263,12 +258,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
263258
}
264259

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

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

505490
/**
506-
* <important>
507-
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
508-
* subject to change. We recommend that you use this feature only with
509-
* test scenarios, and not in production environments.</p>
510-
* </important>
511-
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
491+
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
512492
* information required for token based access to your Ethereum nodes.</p>
513493
*/
514494
public listAccessors(

clients/client-managedblockchain/src/ManagedBlockchainClient.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ export interface ManagedBlockchainClientResolvedConfig extends ManagedBlockchain
297297
/**
298298
* <p></p>
299299
* <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>
300-
* <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>
301-
* <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>
300+
* <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>
301+
* <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>
302302
*/
303303
export class ManagedBlockchainClient extends __Client<
304304
__HttpHandlerOptions,

clients/client-managedblockchain/src/commands/CreateAccessorCommand.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ export interface CreateAccessorCommandInput extends CreateAccessorInput {}
3939
export interface CreateAccessorCommandOutput extends CreateAccessorOutput, __MetadataBearer {}
4040

4141
/**
42-
* <important>
43-
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
44-
* subject to change. We recommend that you use this feature only with
45-
* test scenarios, and not in production environments.</p>
46-
* </important>
47-
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor object is a container that has the information
42+
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor contains information
4843
* required for token based access to your Ethereum nodes.</p>
4944
* @example
5045
* Use a bare-bones client and the command you need to make an API call.

clients/client-managedblockchain/src/commands/DeleteAccessorCommand.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ export interface DeleteAccessorCommandInput extends DeleteAccessorInput {}
3939
export interface DeleteAccessorCommandOutput extends DeleteAccessorOutput, __MetadataBearer {}
4040

4141
/**
42-
* <important>
43-
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
44-
* subject to change. We recommend that you use this feature only with
45-
* test scenarios, and not in production environments.</p>
46-
* </important>
47-
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
42+
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
4843
* information required for token based access to your Ethereum nodes including, the
4944
* <code>BILLING_TOKEN</code>. After an accessor is deleted, the status of the accessor changes
5045
* from <code>AVAILABLE</code> to <code>PENDING_DELETION</code>. An accessor in the

clients/client-managedblockchain/src/commands/GetAccessorCommand.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ export interface GetAccessorCommandInput extends GetAccessorInput {}
3939
export interface GetAccessorCommandOutput extends GetAccessorOutput, __MetadataBearer {}
4040

4141
/**
42-
* <important>
43-
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
44-
* subject to change. We recommend that you use this feature only with
45-
* test scenarios, and not in production environments.</p>
46-
* </important>
47-
* <p>Returns detailed information about an accessor. An accessor object is a container that has the
42+
* <p>Returns detailed information about an accessor. An accessor object is a container that has the
4843
* information required for token based access to your Ethereum nodes.</p>
4944
* @example
5045
* Use a bare-bones client and the command you need to make an API call.

clients/client-managedblockchain/src/commands/ListAccessorsCommand.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ export interface ListAccessorsCommandInput extends ListAccessorsInput {}
3939
export interface ListAccessorsCommandOutput extends ListAccessorsOutput, __MetadataBearer {}
4040

4141
/**
42-
* <important>
43-
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
44-
* subject to change. We recommend that you use this feature only with
45-
* test scenarios, and not in production environments.</p>
46-
* </important>
47-
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
42+
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
4843
* information required for token based access to your Ethereum nodes.</p>
4944
* @example
5045
* Use a bare-bones client and the command you need to make an API call.

clients/client-managedblockchain/src/endpoint/ruleset.ts

+18-17
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/managedblockchain.json */
88

9-
const p="required",
10-
q="fn",
11-
r="argv",
12-
s="ref";
13-
const a="PartitionResult",
9+
const q="required",
10+
r="fn",
11+
s="argv",
12+
t="ref";
13+
const a="isSet",
1414
b="tree",
1515
c="error",
1616
d="endpoint",
17-
e={[p]:false,"type":"String"},
18-
f={[p]:true,"default":false,"type":"Boolean"},
19-
g={[s]:"Endpoint"},
20-
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
21-
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
22-
j={},
23-
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
24-
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
25-
m=[g],
26-
n=[h],
27-
o=[i];
28-
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}]}]};
17+
e="PartitionResult",
18+
f={[q]:false,"type":"String"},
19+
g={[q]:true,"default":false,"type":"Boolean"},
20+
h={[t]:"Endpoint"},
21+
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22+
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
23+
k={},
24+
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
25+
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
26+
n=[i],
27+
o=[j],
28+
p=[{[t]:"Region"}];
29+
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}]}]};
2930
export const ruleSet: RuleSetObject = _data;

0 commit comments

Comments
 (0)