2019/11/18 - Amazon Simple Systems Manager (SSM) - 8 updated api methods
Changes Update ssm client to latest version
{'Category': 'string', 'Severity': 'string'}
Creates a new OpsItem. You must have permission in AWS Identity and Access Management (IAM) to create a new OpsItem. For more information, see Getting Started with OpsCenter in the AWS Systems Manager User Guide.
Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their AWS resources. For more information, see AWS Systems Manager OpsCenter in the AWS Systems Manager User Guide.
See also: AWS API Documentation
Request Syntax
client.create_ops_item( Description='string', OperationalData={ 'string': { 'Value': 'string', 'Type': 'SearchableString'|'String' } }, Notifications=[ { 'Arn': 'string' }, ], Priority=123, RelatedOpsItems=[ { 'OpsItemId': 'string' }, ], Source='string', Title='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], Category='string', Severity='string' )
string
[REQUIRED]
Information about the OpsItem.
dict
Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API action) can view and search on the specified data. Operational data that is not searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API action).
Use the /aws/resources key in OperationalData to specify a related resource in the request. Use the /aws/automations key in OperationalData to associate an Automation runbook with the OpsItem. To view AWS CLI example commands that use these keys, see Creating OpsItems Manually in the AWS Systems Manager User Guide.
(string) --
(dict) --
An object that defines the value of the key and its type in the OperationalData map.
Value (string) --
The value of the OperationalData key.
Type (string) --
The type of key-value pair. Valid types include SearchableString and String.
list
The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.
(dict) --
A notification about the OpsItem.
Arn (string) --
The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.
integer
The importance of this OpsItem in relation to other OpsItems in the system.
list
One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
(dict) --
An OpsItems that shares something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
OpsItemId (string) -- [REQUIRED]
The ID of an OpsItem related to the current OpsItem.
string
[REQUIRED]
The origin of the OpsItem, such as Amazon EC2 or AWS Systems Manager.
string
[REQUIRED]
A short heading that describes the nature of the OpsItem and the impacted resource.
list
Optional metadata that you assign to a resource. You can restrict access to OpsItems by using an inline IAM policy that specifies tags. For more information, see Getting Started with OpsCenter in the AWS Systems Manager User Guide.
Tags use a key-value pair. For example:
Key=Department,Value=Finance
(dict) --
Metadata that you assign to your AWS resources. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. In Systems Manager, you can apply tags to documents, managed instances, maintenance windows, Parameter Store parameters, and patch baselines.
Key (string) -- [REQUIRED]
The name of the tag.
Value (string) -- [REQUIRED]
The value of the tag.
string
Specify a category to assign to an OpsItem.
string
Specify a severity to assign to an OpsItem.
dict
Response Syntax
{ 'OpsItemId': 'string' }
Response Structure
(dict) --
OpsItemId (string) --
The ID of the OpsItem.
{'SyncSource': {'AwsOrganizationsSource': {'OrganizationSourceType': 'string', 'OrganizationalUnits': [{'OrganizationalUnitId': 'string'}]}, 'IncludeFutureRegions': 'boolean', 'SourceRegions': ['string'], 'SourceType': 'string'}, 'SyncType': 'string'}
A resource data sync helps you view data from multiple sources in a single location. Systems Manager offers two types of resource data sync: SyncToDestination and SyncFromSource.
You can configure Systems Manager Inventory to use the SyncToDestination type to synchronize Inventory data from multiple AWS Regions to a single Amazon S3 bucket. For more information, see Configuring Resource Data Sync for Inventory in the AWS Systems Manager User Guide.
You can configure Systems Manager Explorer to use the SyncToDestination type to synchronize operational work items (OpsItems) and operational data (OpsData) from multiple AWS Regions to a single Amazon S3 bucket. You can also configure Explorer to use the SyncFromSource type. This type synchronizes OpsItems and OpsData from multiple AWS accounts and Regions by using AWS Organizations. For more information, see Setting Up Explorer to Display Data from Multiple Accounts and Regions in the AWS Systems Manager User Guide.
A resource data sync is an asynchronous operation that returns immediately. After a successful initial sync is completed, the system continuously syncs data. To check the status of a sync, use the ListResourceDataSync.
See also: AWS API Documentation
Request Syntax
client.create_resource_data_sync( SyncName='string', S3Destination={ 'BucketName': 'string', 'Prefix': 'string', 'SyncFormat': 'JsonSerDe', 'Region': 'string', 'AWSKMSKeyARN': 'string' }, SyncType='string', SyncSource={ 'SourceType': 'string', 'AwsOrganizationsSource': { 'OrganizationSourceType': 'string', 'OrganizationalUnits': [ { 'OrganizationalUnitId': 'string' }, ] }, 'SourceRegions': [ 'string', ], 'IncludeFutureRegions': True|False } )
string
[REQUIRED]
A name for the configuration.
dict
Amazon S3 configuration details for the sync.
BucketName (string) -- [REQUIRED]
The name of the Amazon S3 bucket where the aggregated data is stored.
Prefix (string) --
An Amazon S3 prefix for the bucket.
SyncFormat (string) -- [REQUIRED]
A supported sync format. The following format is currently supported: JsonSerDe
Region (string) -- [REQUIRED]
The AWS Region with the Amazon S3 bucket targeted by the Resource Data Sync.
AWSKMSKeyARN (string) --
The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as the destination Amazon S3 bucket.
string
Specify SyncToDestination to create a resource data sync that synchronizes data from multiple AWS Regions to an Amazon S3 bucket. Specify SyncFromSource to synchronize data from multiple AWS accounts and Regions, as listed in AWS Organizations.
dict
Specify information about the data sources to synchronize.
SourceType (string) -- [REQUIRED]
The type of data source for the resource data sync. SourceType is either AwsOrganizations (if an organization is present in AWS Organizations) or singleAccountMultiRegions.
AwsOrganizationsSource (dict) --
The field name in SyncSource for the ResourceDataSyncAwsOrganizationsSource type.
OrganizationSourceType (string) -- [REQUIRED]
If an AWS Organization is present, this is either OrganizationalUnits or EntireOrganization. For OrganizationalUnits, the data is aggregated from a set of organization units. For EntireOrganization, the data is aggregated from the entire AWS Organization.
OrganizationalUnits (list) --
The AWS Organizations organization units included in the sync.
(dict) --
The AWS Organizations organizational unit data source for the sync.
OrganizationalUnitId (string) --
The AWS Organization unit ID data source for the sync.
SourceRegions (list) -- [REQUIRED]
The SyncSource AWS Regions included in the resource data sync.
(string) --
IncludeFutureRegions (boolean) --
Whether to automatically synchronize and aggregate data from new AWS Regions when those Regions come online.
dict
Response Syntax
{}
Response Structure
(dict) --
{'SyncType': 'string'}
Deletes a Resource Data Sync configuration. After the configuration is deleted, changes to data on managed instances are no longer synced to or from the target. Deleting a sync configuration does not delete data.
See also: AWS API Documentation
Request Syntax
client.delete_resource_data_sync( SyncName='string', SyncType='string' )
string
[REQUIRED]
The name of the configuration to delete.
string
Specify the type of resource data sync to delete.
dict
Response Syntax
{}
Response Structure
(dict) --
{'OpsItemFilters': {'Key': {'Severity', 'Category'}}}Response
{'OpsItemSummaries': {'Category': 'string', 'Severity': 'string'}}
Query a set of OpsItems. You must have permission in AWS Identity and Access Management (IAM) to query a list of OpsItems. For more information, see Getting Started with OpsCenter in the AWS Systems Manager User Guide.
Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their AWS resources. For more information, see AWS Systems Manager OpsCenter in the AWS Systems Manager User Guide.
See also: AWS API Documentation
Request Syntax
client.describe_ops_items( OpsItemFilters=[ { 'Key': 'Status'|'CreatedBy'|'Source'|'Priority'|'Title'|'OpsItemId'|'CreatedTime'|'LastModifiedTime'|'OperationalData'|'OperationalDataKey'|'OperationalDataValue'|'ResourceId'|'AutomationId'|'Category'|'Severity', 'Values': [ 'string', ], 'Operator': 'Equal'|'Contains'|'GreaterThan'|'LessThan' }, ], MaxResults=123, NextToken='string' )
list
One or more filters to limit the reponse.
Key: CreatedTime Operations: GreaterThan, LessThan
Key: LastModifiedBy Operations: Contains, Equals
Key: LastModifiedTime Operations: GreaterThan, LessThan
Key: Priority Operations: Equals
Key: Source Operations: Contains, Equals
Key: Status Operations: Equals
Key: Title Operations: Contains
Key: OperationalData* Operations: Equals
Key: OperationalDataKey Operations: Equals
Key: OperationalDataValue Operations: Equals, Contains
Key: OpsItemId Operations: Equals
Key: ResourceId Operations: Contains
Key: AutomationId Operations: Equals
*If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}
(dict) --
Describes an OpsItem filter.
Key (string) -- [REQUIRED]
The name of the filter.
Values (list) -- [REQUIRED]
The filter value.
(string) --
Operator (string) -- [REQUIRED]
The operator used by the filter call.
integer
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
string
A token to start the list. Use this token to get the next set of results.
dict
Response Syntax
{ 'NextToken': 'string', 'OpsItemSummaries': [ { 'CreatedBy': 'string', 'CreatedTime': datetime(2015, 1, 1), 'LastModifiedBy': 'string', 'LastModifiedTime': datetime(2015, 1, 1), 'Priority': 123, 'Source': 'string', 'Status': 'Open'|'InProgress'|'Resolved', 'OpsItemId': 'string', 'Title': 'string', 'OperationalData': { 'string': { 'Value': 'string', 'Type': 'SearchableString'|'String' } }, 'Category': 'string', 'Severity': 'string' }, ] }
Response Structure
(dict) --
NextToken (string) --
The token for the next set of items to return. Use this token to get the next set of results.
OpsItemSummaries (list) --
A list of OpsItems.
(dict) --
A count of OpsItems.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
CreatedTime (datetime) --
The date and time the OpsItem was created.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
LastModifiedTime (datetime) --
The date and time the OpsItem was last updated.
Priority (integer) --
The importance of this OpsItem in relation to other OpsItems in the system.
Source (string) --
The impacted AWS resource.
Status (string) --
The OpsItem status. Status can be Open, In Progress, or Resolved.
OpsItemId (string) --
The ID of the OpsItem.
Title (string) --
A short heading that describes the nature of the OpsItem and the impacted resource.
OperationalData (dict) --
Operational data is custom data that provides useful reference details about the OpsItem.
(string) --
(dict) --
An object that defines the value of the key and its type in the OperationalData map.
Value (string) --
The value of the OperationalData key.
Type (string) --
The type of key-value pair. Valid types include SearchableString and String.
Category (string) --
A list of OpsItems by category.
Severity (string) --
A list of OpsItems by severity.
{'OpsItem': {'Category': 'string', 'Severity': 'string'}}
Get information about an OpsItem by using the ID. You must have permission in AWS Identity and Access Management (IAM) to view information about an OpsItem. For more information, see Getting Started with OpsCenter in the AWS Systems Manager User Guide.
Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their AWS resources. For more information, see AWS Systems Manager OpsCenter in the AWS Systems Manager User Guide.
See also: AWS API Documentation
Request Syntax
client.get_ops_item( OpsItemId='string' )
string
[REQUIRED]
The ID of the OpsItem that you want to get.
dict
Response Syntax
{ 'OpsItem': { 'CreatedBy': 'string', 'CreatedTime': datetime(2015, 1, 1), 'Description': 'string', 'LastModifiedBy': 'string', 'LastModifiedTime': datetime(2015, 1, 1), 'Notifications': [ { 'Arn': 'string' }, ], 'Priority': 123, 'RelatedOpsItems': [ { 'OpsItemId': 'string' }, ], 'Status': 'Open'|'InProgress'|'Resolved', 'OpsItemId': 'string', 'Version': 'string', 'Title': 'string', 'Source': 'string', 'OperationalData': { 'string': { 'Value': 'string', 'Type': 'SearchableString'|'String' } }, 'Category': 'string', 'Severity': 'string' } }
Response Structure
(dict) --
OpsItem (dict) --
The OpsItem.
CreatedBy (string) --
The ARN of the AWS account that created the OpsItem.
CreatedTime (datetime) --
The date and time the OpsItem was created.
Description (string) --
The OpsItem description.
LastModifiedBy (string) --
The ARN of the AWS account that last updated the OpsItem.
LastModifiedTime (datetime) --
The date and time the OpsItem was last updated.
Notifications (list) --
The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.
(dict) --
A notification about the OpsItem.
Arn (string) --
The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.
Priority (integer) --
The importance of this OpsItem in relation to other OpsItems in the system.
RelatedOpsItems (list) --
One or more OpsItems that share something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
(dict) --
An OpsItems that shares something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
OpsItemId (string) --
The ID of an OpsItem related to the current OpsItem.
Status (string) --
The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem Details in the AWS Systems Manager User Guide.
OpsItemId (string) --
The ID of the OpsItem.
Version (string) --
The version of this OpsItem. Each time the OpsItem is edited the version number increments by one.
Title (string) --
A short heading that describes the nature of the OpsItem and the impacted resource.
Source (string) --
The origin of the OpsItem, such as Amazon EC2 or AWS Systems Manager. The impacted resource is a subset of source.
OperationalData (dict) --
Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API action) can view and search on the specified data. Operational data that is not searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API action).
Use the /aws/resources key in OperationalData to specify a related resource in the request. Use the /aws/automations key in OperationalData to associate an Automation runbook with the OpsItem. To view AWS CLI example commands that use these keys, see Creating OpsItems Manually in the AWS Systems Manager User Guide.
(string) --
(dict) --
An object that defines the value of the key and its type in the OperationalData map.
Value (string) --
The value of the OperationalData key.
Type (string) --
The type of key-value pair. Valid types include SearchableString and String.
Category (string) --
An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, Security.
Severity (string) --
The severity of the OpsItem. Severity options range from 1 to 4.
{'ResultAttributes': [{'TypeName': 'string'}], 'SyncName': 'string'}Response
{'Entities': {'Data': {'CaptureTime': 'string'}}}
View a summary of OpsItems based on specified filters and aggregators.
See also: AWS API Documentation
Request Syntax
client.get_ops_summary( SyncName='string', Filters=[ { 'Key': 'string', 'Values': [ 'string', ], 'Type': 'Equal'|'NotEqual'|'BeginWith'|'LessThan'|'GreaterThan'|'Exists' }, ], Aggregators=[ { 'AggregatorType': 'string', 'TypeName': 'string', 'AttributeName': 'string', 'Values': { 'string': 'string' }, 'Filters': [ { 'Key': 'string', 'Values': [ 'string', ], 'Type': 'Equal'|'NotEqual'|'BeginWith'|'LessThan'|'GreaterThan'|'Exists' }, ], 'Aggregators': {'... recursive ...'} }, ], ResultAttributes=[ { 'TypeName': 'string' }, ], NextToken='string', MaxResults=123 )
string
Specify the name of a resource data sync to get.
list
Optional filters used to scope down the returned OpsItems.
(dict) --
A filter for viewing OpsItem summaries.
Key (string) -- [REQUIRED]
The name of the filter.
Values (list) -- [REQUIRED]
The filter value.
(string) --
Type (string) --
The type of filter.
list
Optional aggregators that return counts of OpsItems based on one or more expressions.
(dict) --
One or more aggregators for viewing counts of OpsItems using different dimensions such as Source, CreatedTime, or Source and CreatedTime, to name a few.
AggregatorType (string) --
Either a Range or Count aggregator for limiting an OpsItem summary.
TypeName (string) --
The data type name to use for viewing counts of OpsItems.
AttributeName (string) --
The name of an OpsItem attribute on which to limit the count of OpsItems.
Values (dict) --
The aggregator value.
(string) --
(string) --
Filters (list) --
The aggregator filters.
(dict) --
A filter for viewing OpsItem summaries.
Key (string) -- [REQUIRED]
The name of the filter.
Values (list) -- [REQUIRED]
The filter value.
(string) --
Type (string) --
The type of filter.
Aggregators (list) --
A nested aggregator for viewing counts of OpsItems.
list
The OpsItem data type to return.
(dict) --
The OpsItem data type to return.
TypeName (string) -- [REQUIRED]
Name of the data type. Valid value: AWS:OpsItem, AWS:EC2InstanceInformation, AWS:OpsItemTrendline, or AWS:ComplianceSummary.
string
A token to start the list. Use this token to get the next set of results.
integer
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
dict
Response Syntax
{ 'Entities': [ { 'Id': 'string', 'Data': { 'string': { 'CaptureTime': 'string', 'Content': [ { 'string': 'string' }, ] } } }, ], 'NextToken': 'string' }
Response Structure
(dict) --
Entities (list) --
The list of aggregated and filtered OpsItems.
(dict) --
The result of the query.
Id (string) --
The query ID.
Data (dict) --
The data returned by the query.
(string) --
(dict) --
The OpsItem summaries result item.
CaptureTime (string) --
The time OpsItem data was captured.
Content (list) --
The detailed data content for an OpsItem summaries result item.
(dict) --
(string) --
(string) --
NextToken (string) --
The token for the next set of items to return. Use this token to get the next set of results.
{'SyncType': 'string'}Response
{'ResourceDataSyncItems': {'SyncLastModifiedTime': 'timestamp', 'SyncSource': {'AwsOrganizationsSource': {'OrganizationSourceType': 'string', 'OrganizationalUnits': [{'OrganizationalUnitId': 'string'}]}, 'IncludeFutureRegions': 'boolean', 'SourceRegions': ['string'], 'SourceType': 'string', 'State': 'string'}, 'SyncType': 'string'}}
Lists your resource data sync configurations. Includes information about the last time a sync attempted to start, the last sync status, and the last time a sync successfully completed.
The number of sync configurations might be too large to return using a single call to ListResourceDataSync. You can limit the number of sync configurations returned by using the MaxResults parameter. To determine whether there are more sync configurations to list, check the value of NextToken in the output. If there are more sync configurations to list, you can request them by specifying the NextToken returned in the call to the parameter of a subsequent call.
See also: AWS API Documentation
Request Syntax
client.list_resource_data_sync( SyncType='string', NextToken='string', MaxResults=123 )
string
View a list of resource data syncs according to the sync type. Specify SyncToDestination to view resource data syncs that synchronize data to an Amazon S3 buckets. Specify SyncFromSource to view resource data syncs from AWS Organizations or from multiple AWS Regions.
string
A token to start the list. Use this token to get the next set of results.
integer
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
dict
Response Syntax
{ 'ResourceDataSyncItems': [ { 'SyncName': 'string', 'SyncType': 'string', 'SyncSource': { 'SourceType': 'string', 'AwsOrganizationsSource': { 'OrganizationSourceType': 'string', 'OrganizationalUnits': [ { 'OrganizationalUnitId': 'string' }, ] }, 'SourceRegions': [ 'string', ], 'IncludeFutureRegions': True|False, 'State': 'string' }, 'S3Destination': { 'BucketName': 'string', 'Prefix': 'string', 'SyncFormat': 'JsonSerDe', 'Region': 'string', 'AWSKMSKeyARN': 'string' }, 'LastSyncTime': datetime(2015, 1, 1), 'LastSuccessfulSyncTime': datetime(2015, 1, 1), 'SyncLastModifiedTime': datetime(2015, 1, 1), 'LastStatus': 'Successful'|'Failed'|'InProgress', 'SyncCreatedTime': datetime(2015, 1, 1), 'LastSyncStatusMessage': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
ResourceDataSyncItems (list) --
A list of your current Resource Data Sync configurations and their statuses.
(dict) --
Information about a Resource Data Sync configuration, including its current status and last successful sync.
SyncName (string) --
The name of the Resource Data Sync.
SyncType (string) --
The type of resource data sync. If SyncType is SyncToDestination, then the resource data sync synchronizes data to an Amazon S3 bucket. If the SyncType is SyncFromSource then the resource data sync synchronizes data from AWS Organizations or from multiple AWS Regions.
SyncSource (dict) --
Information about the source where the data was synchronized.
SourceType (string) --
The type of data source for the resource data sync. SourceType is either AwsOrganizations (if an organization is present in AWS Organizations) or singleAccountMultiRegions.
AwsOrganizationsSource (dict) --
The field name in SyncSource for the ResourceDataSyncAwsOrganizationsSource type.
OrganizationSourceType (string) --
If an AWS Organization is present, this is either OrganizationalUnits or EntireOrganization. For OrganizationalUnits, the data is aggregated from a set of organization units. For EntireOrganization, the data is aggregated from the entire AWS Organization.
OrganizationalUnits (list) --
The AWS Organizations organization units included in the sync.
(dict) --
The AWS Organizations organizational unit data source for the sync.
OrganizationalUnitId (string) --
The AWS Organization unit ID data source for the sync.
SourceRegions (list) --
The SyncSource AWS Regions included in the resource data sync.
(string) --
IncludeFutureRegions (boolean) --
Whether to automatically synchronize and aggregate data from new AWS Regions when those Regions come online.
State (string) --
The data type name for including resource data sync state. There are four sync states:
OrganizationNotExists: Your organization doesn't exist.
NoPermissions: The system can't locate the service-linked role. This role is automatically created when a user creates a resource data sync in Explorer.
InvalidOrganizationalUnit: You specified or selected an invalid unit in the resource data sync configuration.
TrustedAccessDisabled: You disabled Systems Manager access in the organization in AWS Organizations.
S3Destination (dict) --
Configuration information for the target Amazon S3 bucket.
BucketName (string) --
The name of the Amazon S3 bucket where the aggregated data is stored.
Prefix (string) --
An Amazon S3 prefix for the bucket.
SyncFormat (string) --
A supported sync format. The following format is currently supported: JsonSerDe
Region (string) --
The AWS Region with the Amazon S3 bucket targeted by the Resource Data Sync.
AWSKMSKeyARN (string) --
The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as the destination Amazon S3 bucket.
LastSyncTime (datetime) --
The last time the configuration attempted to sync (UTC).
LastSuccessfulSyncTime (datetime) --
The last time the sync operations returned a status of SUCCESSFUL (UTC).
SyncLastModifiedTime (datetime) --
The date and time the resource data sync was changed.
LastStatus (string) --
The status reported by the last sync.
SyncCreatedTime (datetime) --
The date and time the configuration was created (UTC).
LastSyncStatusMessage (string) --
The status message details reported by the last sync.
NextToken (string) --
The token for the next set of items to return. Use this token to get the next set of results.
{'Category': 'string', 'Severity': 'string'}
Edit or change an OpsItem. You must have permission in AWS Identity and Access Management (IAM) to update an OpsItem. For more information, see Getting Started with OpsCenter in the AWS Systems Manager User Guide.
Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their AWS resources. For more information, see AWS Systems Manager OpsCenter in the AWS Systems Manager User Guide.
See also: AWS API Documentation
Request Syntax
client.update_ops_item( Description='string', OperationalData={ 'string': { 'Value': 'string', 'Type': 'SearchableString'|'String' } }, OperationalDataToDelete=[ 'string', ], Notifications=[ { 'Arn': 'string' }, ], Priority=123, RelatedOpsItems=[ { 'OpsItemId': 'string' }, ], Status='Open'|'InProgress'|'Resolved', OpsItemId='string', Title='string', Category='string', Severity='string' )
string
Update the information about the OpsItem. Provide enough information so that users reading this OpsItem for the first time understand the issue.
dict
Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object.
Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API action) can view and search on the specified data. Operational data that is not searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API action).
Use the /aws/resources key in OperationalData to specify a related resource in the request. Use the /aws/automations key in OperationalData to associate an Automation runbook with the OpsItem. To view AWS CLI example commands that use these keys, see Creating OpsItems Manually in the AWS Systems Manager User Guide.
(string) --
(dict) --
An object that defines the value of the key and its type in the OperationalData map.
Value (string) --
The value of the OperationalData key.
Type (string) --
The type of key-value pair. Valid types include SearchableString and String.
list
Keys that you want to remove from the OperationalData map.
(string) --
list
The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.
(dict) --
A notification about the OpsItem.
Arn (string) --
The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.
integer
The importance of this OpsItem in relation to other OpsItems in the system.
list
One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
(dict) --
An OpsItems that shares something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
OpsItemId (string) -- [REQUIRED]
The ID of an OpsItem related to the current OpsItem.
string
The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem Details in the AWS Systems Manager User Guide.
string
[REQUIRED]
The ID of the OpsItem.
string
A short heading that describes the nature of the OpsItem and the impacted resource.
string
Specify a new category for an OpsItem.
string
Specify a new severity for an OpsItem.
dict
Response Syntax
{}
Response Structure
(dict) --