@aws-sdk/client-proton 3.209.0 → 3.210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_0.js +8 -0
- package/dist-es/protocols/Aws_json1_0.js +8 -0
- package/dist-types/Proton.d.ts +28 -10
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +10 -3
- package/dist-types/commands/NotifyResourceDeploymentStatusChangeCommand.d.ts +13 -2
- package/dist-types/commands/UpdateEnvironmentCommand.d.ts +5 -5
- package/dist-types/models/models_0.d.ts +74 -26
- package/dist-types/ts3.4/models/models_0.d.ts +9 -1
- package/package.json +4 -4
|
@@ -4452,6 +4452,7 @@ const serializeAws_json1_0CreateComponentInput = (input, context) => {
|
|
|
4452
4452
|
const serializeAws_json1_0CreateEnvironmentAccountConnectionInput = (input, context) => {
|
|
4453
4453
|
return {
|
|
4454
4454
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
4455
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4455
4456
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4456
4457
|
...(input.environmentName != null && { environmentName: input.environmentName }),
|
|
4457
4458
|
...(input.managementAccountId != null && { managementAccountId: input.managementAccountId }),
|
|
@@ -4461,6 +4462,7 @@ const serializeAws_json1_0CreateEnvironmentAccountConnectionInput = (input, cont
|
|
|
4461
4462
|
};
|
|
4462
4463
|
const serializeAws_json1_0CreateEnvironmentInput = (input, context) => {
|
|
4463
4464
|
return {
|
|
4465
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4464
4466
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4465
4467
|
...(input.description != null && { description: input.description }),
|
|
4466
4468
|
...(input.environmentAccountConnectionId != null && {
|
|
@@ -4944,6 +4946,7 @@ const serializeAws_json1_0UpdateAccountSettingsInput = (input, context) => {
|
|
|
4944
4946
|
...(input.deletePipelineProvisioningRepository != null && {
|
|
4945
4947
|
deletePipelineProvisioningRepository: input.deletePipelineProvisioningRepository,
|
|
4946
4948
|
}),
|
|
4949
|
+
...(input.pipelineCodebuildRoleArn != null && { pipelineCodebuildRoleArn: input.pipelineCodebuildRoleArn }),
|
|
4947
4950
|
...(input.pipelineProvisioningRepository != null && {
|
|
4948
4951
|
pipelineProvisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.pipelineProvisioningRepository, context),
|
|
4949
4952
|
}),
|
|
@@ -4963,6 +4966,7 @@ const serializeAws_json1_0UpdateComponentInput = (input, context) => {
|
|
|
4963
4966
|
};
|
|
4964
4967
|
const serializeAws_json1_0UpdateEnvironmentAccountConnectionInput = (input, context) => {
|
|
4965
4968
|
return {
|
|
4969
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4966
4970
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4967
4971
|
...(input.id != null && { id: input.id }),
|
|
4968
4972
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
@@ -4970,6 +4974,7 @@ const serializeAws_json1_0UpdateEnvironmentAccountConnectionInput = (input, cont
|
|
|
4970
4974
|
};
|
|
4971
4975
|
const serializeAws_json1_0UpdateEnvironmentInput = (input, context) => {
|
|
4972
4976
|
return {
|
|
4977
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4973
4978
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4974
4979
|
...(input.deploymentType != null && { deploymentType: input.deploymentType }),
|
|
4975
4980
|
...(input.description != null && { description: input.description }),
|
|
@@ -5074,6 +5079,7 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
|
5074
5079
|
};
|
|
5075
5080
|
const deserializeAws_json1_0AccountSettings = (output, context) => {
|
|
5076
5081
|
return {
|
|
5082
|
+
pipelineCodebuildRoleArn: (0, smithy_client_1.expectString)(output.pipelineCodebuildRoleArn),
|
|
5077
5083
|
pipelineProvisioningRepository: output.pipelineProvisioningRepository != null
|
|
5078
5084
|
? deserializeAws_json1_0RepositoryBranch(output.pipelineProvisioningRepository, context)
|
|
5079
5085
|
: undefined,
|
|
@@ -5306,6 +5312,7 @@ const deserializeAws_json1_0DeleteTemplateSyncConfigOutput = (output, context) =
|
|
|
5306
5312
|
const deserializeAws_json1_0Environment = (output, context) => {
|
|
5307
5313
|
return {
|
|
5308
5314
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5315
|
+
codebuildRoleArn: (0, smithy_client_1.expectString)(output.codebuildRoleArn),
|
|
5309
5316
|
componentRoleArn: (0, smithy_client_1.expectString)(output.componentRoleArn),
|
|
5310
5317
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5311
5318
|
deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
|
|
@@ -5334,6 +5341,7 @@ const deserializeAws_json1_0Environment = (output, context) => {
|
|
|
5334
5341
|
const deserializeAws_json1_0EnvironmentAccountConnection = (output, context) => {
|
|
5335
5342
|
return {
|
|
5336
5343
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5344
|
+
codebuildRoleArn: (0, smithy_client_1.expectString)(output.codebuildRoleArn),
|
|
5337
5345
|
componentRoleArn: (0, smithy_client_1.expectString)(output.componentRoleArn),
|
|
5338
5346
|
environmentAccountId: (0, smithy_client_1.expectString)(output.environmentAccountId),
|
|
5339
5347
|
environmentName: (0, smithy_client_1.expectString)(output.environmentName),
|
|
@@ -4297,6 +4297,7 @@ const serializeAws_json1_0CreateComponentInput = (input, context) => {
|
|
|
4297
4297
|
const serializeAws_json1_0CreateEnvironmentAccountConnectionInput = (input, context) => {
|
|
4298
4298
|
return {
|
|
4299
4299
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
4300
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4300
4301
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4301
4302
|
...(input.environmentName != null && { environmentName: input.environmentName }),
|
|
4302
4303
|
...(input.managementAccountId != null && { managementAccountId: input.managementAccountId }),
|
|
@@ -4306,6 +4307,7 @@ const serializeAws_json1_0CreateEnvironmentAccountConnectionInput = (input, cont
|
|
|
4306
4307
|
};
|
|
4307
4308
|
const serializeAws_json1_0CreateEnvironmentInput = (input, context) => {
|
|
4308
4309
|
return {
|
|
4310
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4309
4311
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4310
4312
|
...(input.description != null && { description: input.description }),
|
|
4311
4313
|
...(input.environmentAccountConnectionId != null && {
|
|
@@ -4789,6 +4791,7 @@ const serializeAws_json1_0UpdateAccountSettingsInput = (input, context) => {
|
|
|
4789
4791
|
...(input.deletePipelineProvisioningRepository != null && {
|
|
4790
4792
|
deletePipelineProvisioningRepository: input.deletePipelineProvisioningRepository,
|
|
4791
4793
|
}),
|
|
4794
|
+
...(input.pipelineCodebuildRoleArn != null && { pipelineCodebuildRoleArn: input.pipelineCodebuildRoleArn }),
|
|
4792
4795
|
...(input.pipelineProvisioningRepository != null && {
|
|
4793
4796
|
pipelineProvisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.pipelineProvisioningRepository, context),
|
|
4794
4797
|
}),
|
|
@@ -4808,6 +4811,7 @@ const serializeAws_json1_0UpdateComponentInput = (input, context) => {
|
|
|
4808
4811
|
};
|
|
4809
4812
|
const serializeAws_json1_0UpdateEnvironmentAccountConnectionInput = (input, context) => {
|
|
4810
4813
|
return {
|
|
4814
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4811
4815
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4812
4816
|
...(input.id != null && { id: input.id }),
|
|
4813
4817
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
@@ -4815,6 +4819,7 @@ const serializeAws_json1_0UpdateEnvironmentAccountConnectionInput = (input, cont
|
|
|
4815
4819
|
};
|
|
4816
4820
|
const serializeAws_json1_0UpdateEnvironmentInput = (input, context) => {
|
|
4817
4821
|
return {
|
|
4822
|
+
...(input.codebuildRoleArn != null && { codebuildRoleArn: input.codebuildRoleArn }),
|
|
4818
4823
|
...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
|
|
4819
4824
|
...(input.deploymentType != null && { deploymentType: input.deploymentType }),
|
|
4820
4825
|
...(input.description != null && { description: input.description }),
|
|
@@ -4919,6 +4924,7 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
|
4919
4924
|
};
|
|
4920
4925
|
const deserializeAws_json1_0AccountSettings = (output, context) => {
|
|
4921
4926
|
return {
|
|
4927
|
+
pipelineCodebuildRoleArn: __expectString(output.pipelineCodebuildRoleArn),
|
|
4922
4928
|
pipelineProvisioningRepository: output.pipelineProvisioningRepository != null
|
|
4923
4929
|
? deserializeAws_json1_0RepositoryBranch(output.pipelineProvisioningRepository, context)
|
|
4924
4930
|
: undefined,
|
|
@@ -5151,6 +5157,7 @@ const deserializeAws_json1_0DeleteTemplateSyncConfigOutput = (output, context) =
|
|
|
5151
5157
|
const deserializeAws_json1_0Environment = (output, context) => {
|
|
5152
5158
|
return {
|
|
5153
5159
|
arn: __expectString(output.arn),
|
|
5160
|
+
codebuildRoleArn: __expectString(output.codebuildRoleArn),
|
|
5154
5161
|
componentRoleArn: __expectString(output.componentRoleArn),
|
|
5155
5162
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
5156
5163
|
deploymentStatus: __expectString(output.deploymentStatus),
|
|
@@ -5179,6 +5186,7 @@ const deserializeAws_json1_0Environment = (output, context) => {
|
|
|
5179
5186
|
const deserializeAws_json1_0EnvironmentAccountConnection = (output, context) => {
|
|
5180
5187
|
return {
|
|
5181
5188
|
arn: __expectString(output.arn),
|
|
5189
|
+
codebuildRoleArn: __expectString(output.codebuildRoleArn),
|
|
5182
5190
|
componentRoleArn: __expectString(output.componentRoleArn),
|
|
5183
5191
|
environmentAccountId: __expectString(output.environmentAccountId),
|
|
5184
5192
|
environmentName: __expectString(output.environmentName),
|
package/dist-types/Proton.d.ts
CHANGED
|
@@ -294,11 +294,18 @@ export declare class Proton extends ProtonClient {
|
|
|
294
294
|
* </p>
|
|
295
295
|
* <ul>
|
|
296
296
|
* <li>
|
|
297
|
-
* <p>
|
|
297
|
+
* <p>
|
|
298
|
+
* <b>Amazon Web Services-managed provisioning</b> – Proton makes direct calls to provision your resources.</p>
|
|
299
|
+
* </li>
|
|
300
|
+
* <li>
|
|
301
|
+
* <p>
|
|
302
|
+
* <b>Self-managed provisioning</b> – Proton makes pull requests on your repository to provide compiled
|
|
303
|
+
* infrastructure as code (IaC) files that your IaC engine uses to provision resources.</p>
|
|
298
304
|
* </li>
|
|
299
305
|
* <li>
|
|
300
|
-
* <p>
|
|
301
|
-
*
|
|
306
|
+
* <p>
|
|
307
|
+
* <b>CodeBuild-based provisioning</b> – Proton uses CodeBuild to run shell commands that you provide. Your commands can
|
|
308
|
+
* read inputs that Proton provides, and are responsible for provisioning or deprovisioning infrastructure and generating output values.</p>
|
|
302
309
|
* </li>
|
|
303
310
|
* </ul>
|
|
304
311
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-environments.html">Environments</a> and <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html">Provisioning methods</a> in the <i>Proton User
|
|
@@ -704,8 +711,19 @@ export declare class Proton extends ProtonClient {
|
|
|
704
711
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
705
712
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
706
713
|
/**
|
|
707
|
-
* <p>Notify Proton of
|
|
708
|
-
* <
|
|
714
|
+
* <p>Notify Proton of the following information related to a provisioned resource (environment, service instance, or service pipeline):</p>
|
|
715
|
+
* <ul>
|
|
716
|
+
* <li>
|
|
717
|
+
* <p>For <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-codebuild">CodeBuild-based
|
|
718
|
+
* provisioning</a>, provide your provisioned resource output values to Proton.</p>
|
|
719
|
+
* </li>
|
|
720
|
+
* <li>
|
|
721
|
+
* <p>For <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self">self-managed
|
|
722
|
+
* provisioning</a>, notify Proton about the status of your provisioned resource. To disambiguate between different deployments of the same
|
|
723
|
+
* resource, set <code>deploymentId</code> to a unique deployment ID of your choice.</p>
|
|
724
|
+
*
|
|
725
|
+
* </li>
|
|
726
|
+
* </ul>
|
|
709
727
|
*/
|
|
710
728
|
notifyResourceDeploymentStatusChange(args: NotifyResourceDeploymentStatusChangeCommandInput, options?: __HttpHandlerOptions): Promise<NotifyResourceDeploymentStatusChangeCommandOutput>;
|
|
711
729
|
notifyResourceDeploymentStatusChange(args: NotifyResourceDeploymentStatusChangeCommandInput, cb: (err: any, data?: NotifyResourceDeploymentStatusChangeCommandOutput) => void): void;
|
|
@@ -760,17 +778,17 @@ export declare class Proton extends ProtonClient {
|
|
|
760
778
|
/**
|
|
761
779
|
* <p>Update an environment.</p>
|
|
762
780
|
* <p>If the environment is associated with an environment account connection, <i>don't</i> update or include the
|
|
763
|
-
* <code>protonServiceRoleArn</code> and <code>provisioningRepository</code>
|
|
781
|
+
* <code>protonServiceRoleArn</code>, <code>codebuildRoleArn</code>, and <code>provisioningRepository</code> parameters.</p>
|
|
764
782
|
* <p>You can only update to a new environment account connection if that connection was created in the same environment account that the current
|
|
765
783
|
* environment account connection was created in. The account connection must also be associated with the current environment.</p>
|
|
766
784
|
* <p>If the environment <i>isn't</i> associated with an environment account connection, <i>don't</i> update or include the
|
|
767
785
|
* <code>environmentAccountConnectionId</code> parameter. You <i>can't</i> update or connect the environment to an environment account
|
|
768
786
|
* connection if it <i>isn't</i> already associated with an environment connection.</p>
|
|
769
|
-
* <p>You can update either
|
|
770
|
-
*
|
|
771
|
-
* <p>If the environment was configured for Amazon Web Services-managed provisioning, omit the <code>provisioningRepository</code> parameter.</p>
|
|
787
|
+
* <p>You can update either <code>environmentAccountConnectionId</code> or one or more of <code>protonServiceRoleArn</code>, <code>codebuildRoleArn</code>,
|
|
788
|
+
* and <code>provisioningRepository</code>.</p>
|
|
789
|
+
* <p>If the environment was configured for Amazon Web Services-managed or CodeBuild-based provisioning, omit the <code>provisioningRepository</code> parameter.</p>
|
|
772
790
|
* <p>If the environment was configured for self-managed provisioning, specify the <code>provisioningRepository</code> parameter and omit the
|
|
773
|
-
* <code>protonServiceRoleArn</code> and <code>
|
|
791
|
+
* <code>protonServiceRoleArn</code>, <code>codebuildRoleArn</code>, and <code>provisioningRepository</code> parameters.</p>
|
|
774
792
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-environments.html">Environments</a> and <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html">Provisioning methods</a> in the <i>Proton User
|
|
775
793
|
* Guide</i>.</p>
|
|
776
794
|
* <p>There are four modes for updating an environment. The <code>deploymentType</code> field defines the mode.</p>
|
|
@@ -15,11 +15,18 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput,
|
|
|
15
15
|
* </p>
|
|
16
16
|
* <ul>
|
|
17
17
|
* <li>
|
|
18
|
-
* <p>
|
|
18
|
+
* <p>
|
|
19
|
+
* <b>Amazon Web Services-managed provisioning</b> – Proton makes direct calls to provision your resources.</p>
|
|
19
20
|
* </li>
|
|
20
21
|
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
*
|
|
22
|
+
* <p>
|
|
23
|
+
* <b>Self-managed provisioning</b> – Proton makes pull requests on your repository to provide compiled
|
|
24
|
+
* infrastructure as code (IaC) files that your IaC engine uses to provision resources.</p>
|
|
25
|
+
* </li>
|
|
26
|
+
* <li>
|
|
27
|
+
* <p>
|
|
28
|
+
* <b>CodeBuild-based provisioning</b> – Proton uses CodeBuild to run shell commands that you provide. Your commands can
|
|
29
|
+
* read inputs that Proton provides, and are responsible for provisioning or deprovisioning infrastructure and generating output values.</p>
|
|
23
30
|
* </li>
|
|
24
31
|
* </ul>
|
|
25
32
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-environments.html">Environments</a> and <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html">Provisioning methods</a> in the <i>Proton User
|
|
@@ -8,8 +8,19 @@ export interface NotifyResourceDeploymentStatusChangeCommandInput extends Notify
|
|
|
8
8
|
export interface NotifyResourceDeploymentStatusChangeCommandOutput extends NotifyResourceDeploymentStatusChangeOutput, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Notify Proton of
|
|
12
|
-
* <
|
|
11
|
+
* <p>Notify Proton of the following information related to a provisioned resource (environment, service instance, or service pipeline):</p>
|
|
12
|
+
* <ul>
|
|
13
|
+
* <li>
|
|
14
|
+
* <p>For <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-codebuild">CodeBuild-based
|
|
15
|
+
* provisioning</a>, provide your provisioned resource output values to Proton.</p>
|
|
16
|
+
* </li>
|
|
17
|
+
* <li>
|
|
18
|
+
* <p>For <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self">self-managed
|
|
19
|
+
* provisioning</a>, notify Proton about the status of your provisioned resource. To disambiguate between different deployments of the same
|
|
20
|
+
* resource, set <code>deploymentId</code> to a unique deployment ID of your choice.</p>
|
|
21
|
+
*
|
|
22
|
+
* </li>
|
|
23
|
+
* </ul>
|
|
13
24
|
* @example
|
|
14
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
26
|
* ```javascript
|
|
@@ -10,17 +10,17 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentOutput,
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Update an environment.</p>
|
|
12
12
|
* <p>If the environment is associated with an environment account connection, <i>don't</i> update or include the
|
|
13
|
-
* <code>protonServiceRoleArn</code> and <code>provisioningRepository</code>
|
|
13
|
+
* <code>protonServiceRoleArn</code>, <code>codebuildRoleArn</code>, and <code>provisioningRepository</code> parameters.</p>
|
|
14
14
|
* <p>You can only update to a new environment account connection if that connection was created in the same environment account that the current
|
|
15
15
|
* environment account connection was created in. The account connection must also be associated with the current environment.</p>
|
|
16
16
|
* <p>If the environment <i>isn't</i> associated with an environment account connection, <i>don't</i> update or include the
|
|
17
17
|
* <code>environmentAccountConnectionId</code> parameter. You <i>can't</i> update or connect the environment to an environment account
|
|
18
18
|
* connection if it <i>isn't</i> already associated with an environment connection.</p>
|
|
19
|
-
* <p>You can update either
|
|
20
|
-
*
|
|
21
|
-
* <p>If the environment was configured for Amazon Web Services-managed provisioning, omit the <code>provisioningRepository</code> parameter.</p>
|
|
19
|
+
* <p>You can update either <code>environmentAccountConnectionId</code> or one or more of <code>protonServiceRoleArn</code>, <code>codebuildRoleArn</code>,
|
|
20
|
+
* and <code>provisioningRepository</code>.</p>
|
|
21
|
+
* <p>If the environment was configured for Amazon Web Services-managed or CodeBuild-based provisioning, omit the <code>provisioningRepository</code> parameter.</p>
|
|
22
22
|
* <p>If the environment was configured for self-managed provisioning, specify the <code>provisioningRepository</code> parameter and omit the
|
|
23
|
-
* <code>protonServiceRoleArn</code> and <code>
|
|
23
|
+
* <code>protonServiceRoleArn</code>, <code>codebuildRoleArn</code>, and <code>provisioningRepository</code> parameters.</p>
|
|
24
24
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-environments.html">Environments</a> and <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html">Provisioning methods</a> in the <i>Proton User
|
|
25
25
|
* Guide</i>.</p>
|
|
26
26
|
* <p>There are four modes for updating an environment. The <code>deploymentType</code> field defines the mode.</p>
|
|
@@ -32,7 +32,8 @@ export interface EnvironmentAccountConnection {
|
|
|
32
32
|
*/
|
|
33
33
|
environmentAccountId: string | undefined;
|
|
34
34
|
/**
|
|
35
|
-
* <p>The IAM service role
|
|
35
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources
|
|
36
|
+
* using Amazon Web Services-managed provisioning and CloudFormation in the associated environment account.</p>
|
|
36
37
|
*/
|
|
37
38
|
roleArn: string | undefined;
|
|
38
39
|
/**
|
|
@@ -61,6 +62,11 @@ export interface EnvironmentAccountConnection {
|
|
|
61
62
|
* <i>Proton User Guide</i>.</p>
|
|
62
63
|
*/
|
|
63
64
|
componentRoleArn?: string;
|
|
65
|
+
/**
|
|
66
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources
|
|
67
|
+
* using CodeBuild-based provisioning in the associated environment account.</p>
|
|
68
|
+
*/
|
|
69
|
+
codebuildRoleArn?: string;
|
|
64
70
|
}
|
|
65
71
|
export interface AcceptEnvironmentAccountConnectionOutput {
|
|
66
72
|
/**
|
|
@@ -169,8 +175,8 @@ export interface RepositoryBranch {
|
|
|
169
175
|
*/
|
|
170
176
|
export interface AccountSettings {
|
|
171
177
|
/**
|
|
172
|
-
* <p>The Amazon Resource Name (ARN) of the service role
|
|
173
|
-
*
|
|
178
|
+
* <p>The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes this role for Amazon Web Services-managed
|
|
179
|
+
* provisioning.</p>
|
|
174
180
|
*/
|
|
175
181
|
pipelineServiceRoleArn?: string;
|
|
176
182
|
/**
|
|
@@ -178,6 +184,11 @@ export interface AccountSettings {
|
|
|
178
184
|
* pipelines. A linked repository is a repository that has been registered with Proton. For more information, see <a>CreateRepository</a>.</p>
|
|
179
185
|
*/
|
|
180
186
|
pipelineProvisioningRepository?: RepositoryBranch;
|
|
187
|
+
/**
|
|
188
|
+
* <p>The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes this role for CodeBuild-based
|
|
189
|
+
* provisioning.</p>
|
|
190
|
+
*/
|
|
191
|
+
pipelineCodebuildRoleArn?: string;
|
|
181
192
|
}
|
|
182
193
|
export interface GetAccountSettingsInput {
|
|
183
194
|
}
|
|
@@ -223,6 +234,11 @@ export interface UpdateAccountSettingsInput {
|
|
|
223
234
|
* pipeline repository.</p>
|
|
224
235
|
*/
|
|
225
236
|
deletePipelineProvisioningRepository?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based
|
|
239
|
+
* provisioning.</p>
|
|
240
|
+
*/
|
|
241
|
+
pipelineCodebuildRoleArn?: string;
|
|
226
242
|
}
|
|
227
243
|
export interface UpdateAccountSettingsOutput {
|
|
228
244
|
/**
|
|
@@ -370,11 +386,12 @@ export interface Environment {
|
|
|
370
386
|
*/
|
|
371
387
|
deploymentStatusMessage?: string;
|
|
372
388
|
/**
|
|
373
|
-
* <p>The Amazon Resource Name (ARN) of the
|
|
389
|
+
* <p>The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using Amazon Web Services-managed provisioning and CloudFormation
|
|
390
|
+
* on your behalf.</p>
|
|
374
391
|
*/
|
|
375
392
|
protonServiceRoleArn?: string;
|
|
376
393
|
/**
|
|
377
|
-
* <p>The ID of the environment account connection that
|
|
394
|
+
* <p>The ID of the environment account connection that Proton uses to provision infrastructure resources in an environment account.</p>
|
|
378
395
|
*/
|
|
379
396
|
environmentAccountConnectionId?: string;
|
|
380
397
|
/**
|
|
@@ -403,6 +420,11 @@ export interface Environment {
|
|
|
403
420
|
* <i>Proton User Guide</i>.</p>
|
|
404
421
|
*/
|
|
405
422
|
componentRoleArn?: string;
|
|
423
|
+
/**
|
|
424
|
+
* <p>The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your
|
|
425
|
+
* behalf.</p>
|
|
426
|
+
*/
|
|
427
|
+
codebuildRoleArn?: string;
|
|
406
428
|
}
|
|
407
429
|
export interface CancelEnvironmentDeploymentOutput {
|
|
408
430
|
/**
|
|
@@ -886,8 +908,8 @@ export interface CreateEnvironmentAccountConnectionInput {
|
|
|
886
908
|
*/
|
|
887
909
|
managementAccountId: string | undefined;
|
|
888
910
|
/**
|
|
889
|
-
* <p>The Amazon Resource Name (ARN) of
|
|
890
|
-
*
|
|
911
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources
|
|
912
|
+
* using Amazon Web Services-managed provisioning and CloudFormation in the associated environment account.</p>
|
|
891
913
|
*/
|
|
892
914
|
roleArn: string | undefined;
|
|
893
915
|
/**
|
|
@@ -901,8 +923,8 @@ export interface CreateEnvironmentAccountConnectionInput {
|
|
|
901
923
|
*/
|
|
902
924
|
tags?: Tag[];
|
|
903
925
|
/**
|
|
904
|
-
* <p>The Amazon Resource Name (ARN) of
|
|
905
|
-
* environment account. It determines the scope of infrastructure that a component can provision in the account.</p>
|
|
926
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision directly defined components
|
|
927
|
+
* in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.</p>
|
|
906
928
|
* <p>You must specify <code>componentRoleArn</code> to allow directly defined components to be associated with any environments running in this
|
|
907
929
|
* account.</p>
|
|
908
930
|
* <p>For more information about components, see
|
|
@@ -910,6 +932,11 @@ export interface CreateEnvironmentAccountConnectionInput {
|
|
|
910
932
|
* <i>Proton User Guide</i>.</p>
|
|
911
933
|
*/
|
|
912
934
|
componentRoleArn?: string;
|
|
935
|
+
/**
|
|
936
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources
|
|
937
|
+
* using CodeBuild-based provisioning in the associated environment account.</p>
|
|
938
|
+
*/
|
|
939
|
+
codebuildRoleArn?: string;
|
|
913
940
|
}
|
|
914
941
|
export interface CreateEnvironmentAccountConnectionOutput {
|
|
915
942
|
/**
|
|
@@ -1048,7 +1075,8 @@ export interface UpdateEnvironmentAccountConnectionInput {
|
|
|
1048
1075
|
*/
|
|
1049
1076
|
id: string | undefined;
|
|
1050
1077
|
/**
|
|
1051
|
-
* <p>The Amazon Resource Name (ARN) of
|
|
1078
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources
|
|
1079
|
+
* using Amazon Web Services-managed provisioning and CloudFormation in the associated environment account.</p>
|
|
1052
1080
|
*/
|
|
1053
1081
|
roleArn?: string;
|
|
1054
1082
|
/**
|
|
@@ -1061,6 +1089,11 @@ export interface UpdateEnvironmentAccountConnectionInput {
|
|
|
1061
1089
|
* <i>Proton User Guide</i>.</p>
|
|
1062
1090
|
*/
|
|
1063
1091
|
componentRoleArn?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources
|
|
1094
|
+
* using CodeBuild-based provisioning in the associated environment account.</p>
|
|
1095
|
+
*/
|
|
1096
|
+
codebuildRoleArn?: string;
|
|
1064
1097
|
}
|
|
1065
1098
|
export interface UpdateEnvironmentAccountConnectionOutput {
|
|
1066
1099
|
/**
|
|
@@ -1139,17 +1172,18 @@ export interface CreateEnvironmentInput {
|
|
|
1139
1172
|
*/
|
|
1140
1173
|
spec: string | undefined;
|
|
1141
1174
|
/**
|
|
1142
|
-
* <p>The Amazon Resource Name (ARN) of the
|
|
1143
|
-
*
|
|
1144
|
-
*
|
|
1175
|
+
* <p>The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using Amazon Web Services-managed provisioning and CloudFormation
|
|
1176
|
+
* on your behalf.</p>
|
|
1177
|
+
* <p>To use Amazon Web Services-managed provisioning for the environment or for any service instance running in the environment, specify either the
|
|
1178
|
+
* <code>environmentAccountConnectionId</code> or <code>protonServiceRoleArn</code> parameter.</p>
|
|
1145
1179
|
*/
|
|
1146
1180
|
protonServiceRoleArn?: string;
|
|
1147
1181
|
/**
|
|
1148
|
-
* <p>The ID of the environment account connection that you provide if you
|
|
1149
|
-
* account. For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-env-account-connections.html">Environment account
|
|
1150
|
-
*
|
|
1151
|
-
* <p>
|
|
1152
|
-
* <code>
|
|
1182
|
+
* <p>The ID of the environment account connection that you provide if you want Proton to provision infrastructure resources for your environment or for any
|
|
1183
|
+
* of the service instances running in it in an environment account. For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-env-account-connections.html">Environment account connections</a> in the <i>Proton User
|
|
1184
|
+
* guide</i>.</p>
|
|
1185
|
+
* <p>If you specify the <code>environmentAccountConnectionId</code> parameter, don't specify <code>protonServiceRoleArn</code>,
|
|
1186
|
+
* <code>codebuildRoleArn</code>, or <code>provisioningRepository</code>.</p>
|
|
1153
1187
|
*/
|
|
1154
1188
|
environmentAccountConnectionId?: string;
|
|
1155
1189
|
/**
|
|
@@ -1161,8 +1195,7 @@ export interface CreateEnvironmentInput {
|
|
|
1161
1195
|
/**
|
|
1162
1196
|
* <p>The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository
|
|
1163
1197
|
* that has been registered with Proton. For more information, see <a>CreateRepository</a>.</p>
|
|
1164
|
-
* <p>To use self-managed provisioning for the environment
|
|
1165
|
-
* <code>protonServiceRoleArn</code> parameters.</p>
|
|
1198
|
+
* <p>To use self-managed provisioning for the environment or for any service instance running in the environment, specify this parameter.</p>
|
|
1166
1199
|
*/
|
|
1167
1200
|
provisioningRepository?: RepositoryBranchInput;
|
|
1168
1201
|
/**
|
|
@@ -1174,6 +1207,13 @@ export interface CreateEnvironmentInput {
|
|
|
1174
1207
|
* <i>Proton User Guide</i>.</p>
|
|
1175
1208
|
*/
|
|
1176
1209
|
componentRoleArn?: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* <p>The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your
|
|
1212
|
+
* behalf.</p>
|
|
1213
|
+
* <p>To use CodeBuild-based provisioning for the environment or for any service instance running in the environment, specify either the
|
|
1214
|
+
* <code>environmentAccountConnectionId</code> or <code>codebuildRoleArn</code> parameter.</p>
|
|
1215
|
+
*/
|
|
1216
|
+
codebuildRoleArn?: string;
|
|
1177
1217
|
}
|
|
1178
1218
|
export interface CreateEnvironmentOutput {
|
|
1179
1219
|
/**
|
|
@@ -1345,7 +1385,8 @@ export interface UpdateEnvironmentInput {
|
|
|
1345
1385
|
*/
|
|
1346
1386
|
templateMinorVersion?: string;
|
|
1347
1387
|
/**
|
|
1348
|
-
* <p>The Amazon Resource Name (ARN) of the
|
|
1388
|
+
* <p>The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using Amazon Web Services-managed provisioning and CloudFormation
|
|
1389
|
+
* on your behalf.</p>
|
|
1349
1390
|
*/
|
|
1350
1391
|
protonServiceRoleArn?: string;
|
|
1351
1392
|
/**
|
|
@@ -1386,7 +1427,9 @@ export interface UpdateEnvironmentInput {
|
|
|
1386
1427
|
*/
|
|
1387
1428
|
deploymentType: DeploymentUpdateType | string | undefined;
|
|
1388
1429
|
/**
|
|
1389
|
-
* <p>The ID of the environment account connection
|
|
1430
|
+
* <p>The ID of the environment account connection that you provide if you want Proton to provision infrastructure resources for your environment or for any
|
|
1431
|
+
* of the service instances running in it in an environment account. For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-env-account-connections.html">Environment account connections</a> in the <i>Proton User
|
|
1432
|
+
* guide</i>.</p>
|
|
1390
1433
|
* <p>You can only update to a new environment account connection if it was created in the same environment account that the current environment account
|
|
1391
1434
|
* connection was created in and is associated with the current environment.</p>
|
|
1392
1435
|
*/
|
|
@@ -1405,6 +1448,11 @@ export interface UpdateEnvironmentInput {
|
|
|
1405
1448
|
* <i>Proton User Guide</i>.</p>
|
|
1406
1449
|
*/
|
|
1407
1450
|
componentRoleArn?: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* <p>The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your
|
|
1453
|
+
* behalf.</p>
|
|
1454
|
+
*/
|
|
1455
|
+
codebuildRoleArn?: string;
|
|
1408
1456
|
}
|
|
1409
1457
|
export interface UpdateEnvironmentOutput {
|
|
1410
1458
|
/**
|
|
@@ -2165,19 +2213,19 @@ export declare enum ResourceDeploymentStatus {
|
|
|
2165
2213
|
}
|
|
2166
2214
|
export interface NotifyResourceDeploymentStatusChangeInput {
|
|
2167
2215
|
/**
|
|
2168
|
-
* <p>The
|
|
2216
|
+
* <p>The Amazon Resource Name (ARN) of your provisioned resource.</p>
|
|
2169
2217
|
*/
|
|
2170
2218
|
resourceArn: string | undefined;
|
|
2171
2219
|
/**
|
|
2172
2220
|
* <p>The status of your provisioned resource.</p>
|
|
2173
2221
|
*/
|
|
2174
|
-
status
|
|
2222
|
+
status?: ResourceDeploymentStatus | string;
|
|
2175
2223
|
/**
|
|
2176
|
-
* <p>The
|
|
2224
|
+
* <p>The output values generated by your provisioned resource.</p>
|
|
2177
2225
|
*/
|
|
2178
2226
|
outputs?: Output[];
|
|
2179
2227
|
/**
|
|
2180
|
-
* <p>The deployment ID for your provisioned resource
|
|
2228
|
+
* <p>The deployment ID for your provisioned resource. Proton uses it to disambiguate different deployments of the resource. Applicable to <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self">self-managed provisioning</a>.</p>
|
|
2181
2229
|
*/
|
|
2182
2230
|
deploymentId?: string;
|
|
2183
2231
|
/**
|
|
@@ -19,6 +19,7 @@ export interface EnvironmentAccountConnection {
|
|
|
19
19
|
lastModifiedAt: Date | undefined;
|
|
20
20
|
status: EnvironmentAccountConnectionStatus | string | undefined;
|
|
21
21
|
componentRoleArn?: string;
|
|
22
|
+
codebuildRoleArn?: string;
|
|
22
23
|
}
|
|
23
24
|
export interface AcceptEnvironmentAccountConnectionOutput {
|
|
24
25
|
environmentAccountConnection: EnvironmentAccountConnection | undefined;
|
|
@@ -81,6 +82,7 @@ export interface RepositoryBranch {
|
|
|
81
82
|
export interface AccountSettings {
|
|
82
83
|
pipelineServiceRoleArn?: string;
|
|
83
84
|
pipelineProvisioningRepository?: RepositoryBranch;
|
|
85
|
+
pipelineCodebuildRoleArn?: string;
|
|
84
86
|
}
|
|
85
87
|
export interface GetAccountSettingsInput {}
|
|
86
88
|
export interface GetAccountSettingsOutput {
|
|
@@ -95,6 +97,7 @@ export interface UpdateAccountSettingsInput {
|
|
|
95
97
|
pipelineServiceRoleArn?: string;
|
|
96
98
|
pipelineProvisioningRepository?: RepositoryBranchInput;
|
|
97
99
|
deletePipelineProvisioningRepository?: boolean;
|
|
100
|
+
pipelineCodebuildRoleArn?: string;
|
|
98
101
|
}
|
|
99
102
|
export interface UpdateAccountSettingsOutput {
|
|
100
103
|
accountSettings: AccountSettings | undefined;
|
|
@@ -155,6 +158,7 @@ export interface Environment {
|
|
|
155
158
|
provisioning?: Provisioning | string;
|
|
156
159
|
provisioningRepository?: RepositoryBranch;
|
|
157
160
|
componentRoleArn?: string;
|
|
161
|
+
codebuildRoleArn?: string;
|
|
158
162
|
}
|
|
159
163
|
export interface CancelEnvironmentDeploymentOutput {
|
|
160
164
|
environment: Environment | undefined;
|
|
@@ -312,6 +316,7 @@ export interface CreateEnvironmentAccountConnectionInput {
|
|
|
312
316
|
environmentName: string | undefined;
|
|
313
317
|
tags?: Tag[];
|
|
314
318
|
componentRoleArn?: string;
|
|
319
|
+
codebuildRoleArn?: string;
|
|
315
320
|
}
|
|
316
321
|
export interface CreateEnvironmentAccountConnectionOutput {
|
|
317
322
|
environmentAccountConnection: EnvironmentAccountConnection | undefined;
|
|
@@ -370,6 +375,7 @@ export interface UpdateEnvironmentAccountConnectionInput {
|
|
|
370
375
|
id: string | undefined;
|
|
371
376
|
roleArn?: string;
|
|
372
377
|
componentRoleArn?: string;
|
|
378
|
+
codebuildRoleArn?: string;
|
|
373
379
|
}
|
|
374
380
|
export interface UpdateEnvironmentAccountConnectionOutput {
|
|
375
381
|
environmentAccountConnection: EnvironmentAccountConnection | undefined;
|
|
@@ -402,6 +408,7 @@ export interface CreateEnvironmentInput {
|
|
|
402
408
|
tags?: Tag[];
|
|
403
409
|
provisioningRepository?: RepositoryBranchInput;
|
|
404
410
|
componentRoleArn?: string;
|
|
411
|
+
codebuildRoleArn?: string;
|
|
405
412
|
}
|
|
406
413
|
export interface CreateEnvironmentOutput {
|
|
407
414
|
environment: Environment | undefined;
|
|
@@ -466,6 +473,7 @@ export interface UpdateEnvironmentInput {
|
|
|
466
473
|
environmentAccountConnectionId?: string;
|
|
467
474
|
provisioningRepository?: RepositoryBranchInput;
|
|
468
475
|
componentRoleArn?: string;
|
|
476
|
+
codebuildRoleArn?: string;
|
|
469
477
|
}
|
|
470
478
|
export interface UpdateEnvironmentOutput {
|
|
471
479
|
environment: Environment | undefined;
|
|
@@ -733,7 +741,7 @@ export declare enum ResourceDeploymentStatus {
|
|
|
733
741
|
}
|
|
734
742
|
export interface NotifyResourceDeploymentStatusChangeInput {
|
|
735
743
|
resourceArn: string | undefined;
|
|
736
|
-
status
|
|
744
|
+
status?: ResourceDeploymentStatus | string;
|
|
737
745
|
outputs?: Output[];
|
|
738
746
|
deploymentId?: string;
|
|
739
747
|
statusMessage?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-proton",
|
|
3
3
|
"description": "AWS SDK for JavaScript Proton Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.210.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.210.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.209.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.210.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.208.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.208.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.208.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
47
47
|
"@aws-sdk/util-defaults-mode-browser": "3.209.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-node": "3.209.0",
|
|
49
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-endpoints": "3.210.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-browser": "3.208.0",
|
|
51
51
|
"@aws-sdk/util-user-agent-node": "3.209.0",
|
|
52
52
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|