mgn / Client / update_launch_configuration
update_launch_configuration#
- mgn.Client.update_launch_configuration(**kwargs)#
Updates multiple LaunchConfigurations by Source Server ID.
Note
bootMode valid values are
LEGACY_BIOS | UEFI
See also: AWS API Documentation
Request Syntax
response = client.update_launch_configuration( accountID='string', bootMode='LEGACY_BIOS'|'UEFI'|'USE_SOURCE', copyPrivateIp=True|False, copyTags=True|False, enableMapAutoTagging=True|False, launchDisposition='STOPPED'|'STARTED', licensing={ 'osByol': True|False }, mapAutoTaggingMpeID='string', name='string', postLaunchActions={ 'cloudWatchLogGroupName': 'string', 'deployment': 'TEST_AND_CUTOVER'|'CUTOVER_ONLY'|'TEST_ONLY', 's3LogBucket': 'string', 's3OutputKeyPrefix': 'string', 'ssmDocuments': [ { 'actionName': 'string', 'externalParameters': { 'string': { 'dynamicPath': 'string' } }, 'mustSucceedForCutover': True|False, 'parameters': { 'string': [ { 'parameterName': 'string', 'parameterType': 'STRING' }, ] }, 'ssmDocumentName': 'string', 'timeoutSeconds': 123 }, ] }, sourceServerID='string', targetInstanceTypeRightSizingMethod='NONE'|'BASIC' )
- Parameters:
accountID (string) – Update Launch configuration Account ID.
bootMode (string) – Update Launch configuration boot mode request.
copyPrivateIp (boolean) – Update Launch configuration copy Private IP request.
copyTags (boolean) – Update Launch configuration copy Tags request.
enableMapAutoTagging (boolean) – Enable map auto tagging.
launchDisposition (string) – Update Launch configuration launch disposition request.
licensing (dict) –
Update Launch configuration licensing request.
osByol (boolean) –
Configure BYOL OS licensing.
mapAutoTaggingMpeID (string) – Launch configuration map auto tagging MPE ID.
name (string) – Update Launch configuration name request.
postLaunchActions (dict) –
Post Launch Actions to executed on the Test or Cutover instance.
cloudWatchLogGroupName (string) –
AWS Systems Manager Command’s CloudWatch log group name.
deployment (string) –
Deployment type in which AWS Systems Manager Documents will be executed.
s3LogBucket (string) –
AWS Systems Manager Command’s logs S3 log bucket.
s3OutputKeyPrefix (string) –
AWS Systems Manager Command’s logs S3 output key prefix.
ssmDocuments (list) –
AWS Systems Manager Documents.
(dict) –
AWS Systems Manager Document.
actionName (string) – [REQUIRED]
User-friendly name for the AWS Systems Manager Document.
externalParameters (dict) –
AWS Systems Manager Document external parameters.
(string) –
(dict) –
AWS Systems Manager Document external parameter.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
dynamicPath
.dynamicPath (string) –
AWS Systems Manager Document external parameters dynamic path.
mustSucceedForCutover (boolean) –
If true, Cutover will not be enabled if the document has failed.
parameters (dict) –
AWS Systems Manager Document parameters.
(string) –
(list) –
(dict) –
AWS Systems Manager Parameter Store parameter.
parameterName (string) – [REQUIRED]
AWS Systems Manager Parameter Store parameter name.
parameterType (string) – [REQUIRED]
AWS Systems Manager Parameter Store parameter type.
ssmDocumentName (string) – [REQUIRED]
AWS Systems Manager Document name or full ARN.
timeoutSeconds (integer) –
AWS Systems Manager Document timeout seconds.
sourceServerID (string) –
[REQUIRED]
Update Launch configuration by Source Server ID request.
targetInstanceTypeRightSizingMethod (string) – Update Launch configuration Target instance right sizing request.
- Return type:
dict
- Returns:
Response Syntax
{ 'bootMode': 'LEGACY_BIOS'|'UEFI'|'USE_SOURCE', 'copyPrivateIp': True|False, 'copyTags': True|False, 'ec2LaunchTemplateID': 'string', 'enableMapAutoTagging': True|False, 'launchDisposition': 'STOPPED'|'STARTED', 'licensing': { 'osByol': True|False }, 'mapAutoTaggingMpeID': 'string', 'name': 'string', 'postLaunchActions': { 'cloudWatchLogGroupName': 'string', 'deployment': 'TEST_AND_CUTOVER'|'CUTOVER_ONLY'|'TEST_ONLY', 's3LogBucket': 'string', 's3OutputKeyPrefix': 'string', 'ssmDocuments': [ { 'actionName': 'string', 'externalParameters': { 'string': { 'dynamicPath': 'string' } }, 'mustSucceedForCutover': True|False, 'parameters': { 'string': [ { 'parameterName': 'string', 'parameterType': 'STRING' }, ] }, 'ssmDocumentName': 'string', 'timeoutSeconds': 123 }, ] }, 'sourceServerID': 'string', 'targetInstanceTypeRightSizingMethod': 'NONE'|'BASIC' }
Response Structure
(dict) –
bootMode (string) –
Launch configuration boot mode.
copyPrivateIp (boolean) –
Copy Private IP during Launch Configuration.
copyTags (boolean) –
Copy Tags during Launch Configuration.
ec2LaunchTemplateID (string) –
Launch configuration EC2 Launch template ID.
enableMapAutoTagging (boolean) –
Enable map auto tagging.
launchDisposition (string) –
Launch disposition for launch configuration.
licensing (dict) –
Launch configuration OS licensing.
osByol (boolean) –
Configure BYOL OS licensing.
mapAutoTaggingMpeID (string) –
Map auto tagging MPE ID.
name (string) –
Launch configuration name.
postLaunchActions (dict) –
Post Launch Actions to executed on the Test or Cutover instance.
cloudWatchLogGroupName (string) –
AWS Systems Manager Command’s CloudWatch log group name.
deployment (string) –
Deployment type in which AWS Systems Manager Documents will be executed.
s3LogBucket (string) –
AWS Systems Manager Command’s logs S3 log bucket.
s3OutputKeyPrefix (string) –
AWS Systems Manager Command’s logs S3 output key prefix.
ssmDocuments (list) –
AWS Systems Manager Documents.
(dict) –
AWS Systems Manager Document.
actionName (string) –
User-friendly name for the AWS Systems Manager Document.
externalParameters (dict) –
AWS Systems Manager Document external parameters.
(string) –
(dict) –
AWS Systems Manager Document external parameter.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
dynamicPath
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
dynamicPath (string) –
AWS Systems Manager Document external parameters dynamic path.
mustSucceedForCutover (boolean) –
If true, Cutover will not be enabled if the document has failed.
parameters (dict) –
AWS Systems Manager Document parameters.
(string) –
(list) –
(dict) –
AWS Systems Manager Parameter Store parameter.
parameterName (string) –
AWS Systems Manager Parameter Store parameter name.
parameterType (string) –
AWS Systems Manager Parameter Store parameter type.
ssmDocumentName (string) –
AWS Systems Manager Document name or full ARN.
timeoutSeconds (integer) –
AWS Systems Manager Document timeout seconds.
sourceServerID (string) –
Launch configuration Source Server ID.
targetInstanceTypeRightSizingMethod (string) –
Launch configuration Target instance type right sizing method.
Exceptions