CodeDeploy.Client.
get_on_premises_instance
(**kwargs)¶Gets information about an on-premises instance.
See also: AWS API Documentation
Request Syntax
response = client.get_on_premises_instance(
instanceName='string'
)
[REQUIRED]
The name of the on-premises instance about which to get information.
{
'instanceInfo': {
'instanceName': 'string',
'iamSessionArn': 'string',
'iamUserArn': 'string',
'instanceArn': 'string',
'registerTime': datetime(2015, 1, 1),
'deregisterTime': datetime(2015, 1, 1),
'tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
Represents the output of a GetOnPremisesInstance
operation.
Information about the on-premises instance.
The name of the on-premises instance.
The ARN of the IAM session associated with the on-premises instance.
The IAM user ARN associated with the on-premises instance.
The ARN of the on-premises instance.
The time at which the on-premises instance was registered.
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
The tags currently associated with the on-premises instance.
Information about a tag.
The tag's key.
The tag's value.
Exceptions
CodeDeploy.Client.exceptions.InstanceNameRequiredException
CodeDeploy.Client.exceptions.InstanceNotRegisteredException
CodeDeploy.Client.exceptions.InvalidInstanceNameException