update_deployment
async
¶
update_deployment(
deployment_id: DeploymentId,
specifications: DeploymentSpecifications,
*,
config_overrides: Optional[AsyncLaunchWizardClientConfig] = None,
workload_version_name: Optional[WorkloadVersionName] = None,
deployment_pattern_version_name: Optional[DeploymentPatternVersionName] = None,
dry_run: Optional[bool] = None,
force: Optional[bool] = None,
) -> UpdateDeploymentOutput
Updates a deployment.
Parameters:
-
deployment_id(DeploymentId) –The ID of the deployment.
-
specifications(DeploymentSpecifications) –The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see SAP deployment specifications. To retrieve the specifications required to create a deployment for other workloads, use the
GetWorkloadDeploymentPatternoperation. -
workload_version_name(Optional[WorkloadVersionName], default:None) –The name of the workload version.
-
deployment_pattern_version_name(Optional[DeploymentPatternVersionName], default:None) –The name of the deployment pattern version.
-
dry_run(Optional[bool], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
force(Optional[bool], default:None) –Forces the update even if validation warnings are present.
Raises:
-
InternalServerException–An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
-
ResourceLimitException–You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
-
ResourceNotFoundException–The specified workload or deployment resource can't be found.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Edit deployment specifications.
>>> await client.update_deployment(deployment_id='4c1b59c1-659c-467f-b6e9-6ef6f9d28e1d', specifications={'DisableDeploymentRollback': 'No', 'SaveDeploymentArtifacts': 'Yes', 'DeploymentArtifactsS3Uri': 'aws-bucket-name', 'KeyPairName': 'keyName', 'VpcId': 'vpc-1234567', 'CreateSecurityGroup': 'No', 'ProxyServerAddress': 'http://mno.abc.com:8080', 'Timezone': 'Pacific/Wake', 'EnableEbsVolumeEncryption': 'No', 'SapSysGroupId': '5003', 'SapVirtualIPOptIn': 'No', 'SnsTopicArn': 'arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo'}, dry_run=False)
Update deployment version.
>>> await client.update_deployment(deployment_id='4c1b59c1-659c-467f-b6e9-6ef6f9d28e1d', deployment_pattern_version_name='2.0.0', specifications={'DisableDeploymentRollback': 'No', 'SaveDeploymentArtifacts': 'Yes', 'DeploymentArtifactsS3Uri': 'aws-bucket-name', 'KeyPairName': 'keyName', 'VpcId': 'vpc-1234567', 'CreateSecurityGroup': 'No', 'ProxyServerAddress': 'http://mno.abc.com:8080', 'Timezone': 'Pacific/Wake', 'EnableEbsVolumeEncryption': 'No', 'SapSysGroupId': '5003', 'SapVirtualIPOptIn': 'No', 'SnsTopicArn': 'arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo', 'NewParameter': 'Allow'}, dry_run=False)
Source code in docs_src/capo_launch_wizard/_services/async_launch_wizard.py
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 | |