Amazon Simple Systems Manager (SSM)

2019/11/18 - Amazon Simple Systems Manager (SSM) - 8 updated api methods

Changes  The release contains new API and API changes for AWS Systems Manager Explorer product.

CreateOpsItem (updated) Link ¶
Changes (request)
{'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'
)
type Description

string

param Description

[REQUIRED]

Information about the OpsItem.

type OperationalData

dict

param OperationalData

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.

Warning

Operational data keys can't begin with the following: amazon, aws, amzn, ssm, /amazon, /aws, /amzn, /ssm.

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 .

type Notifications

list

param Notifications

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.

type Priority

integer

param Priority

The importance of this OpsItem in relation to other OpsItems in the system.

type RelatedOpsItems

list

param RelatedOpsItems

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.

type Source

string

param Source

[REQUIRED]

The origin of the OpsItem, such as Amazon EC2 or AWS Systems Manager.

type Title

string

param Title

[REQUIRED]

A short heading that describes the nature of the OpsItem and the impacted resource.

type Tags

list

param Tags

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

Note

To add tags to an existing OpsItem, use the AddTagsToResource action.

  • (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.

type Category

string

param Category

Specify a category to assign to an OpsItem.

type Severity

string

param Severity

Specify a severity to assign to an OpsItem.

rtype

dict

returns

Response Syntax

{
    'OpsItemId': 'string'
}

Response Structure

  • (dict) --

    • OpsItemId (string) --

      The ID of the OpsItem.

CreateResourceDataSync (updated) Link ¶
Changes (request)
{'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 .

Note

By default, data is not encrypted in Amazon S3. We strongly recommend that you enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you secure access to the Amazon S3 bucket by creating a restrictive bucket policy.

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
    }
)
type SyncName

string

param SyncName

[REQUIRED]

A name for the configuration.

type S3Destination

dict

param S3Destination

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.

type SyncType

string

param SyncType

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.

type SyncSource

dict

param SyncSource

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.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

DeleteResourceDataSync (updated) Link ¶
Changes (request)
{'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'
)
type SyncName

string

param SyncName

[REQUIRED]

The name of the configuration to delete.

type SyncType

string

param SyncType

Specify the type of resource data sync to delete.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

DescribeOpsItems (updated) Link ¶
Changes (request, response)
Request
{'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'
)
type OpsItemFilters

list

param OpsItemFilters

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.

type MaxResults

integer

param MaxResults

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.

type NextToken

string

param NextToken

A token to start the list. Use this token to get the next set of results.

rtype

dict

returns

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.

GetOpsItem (updated) Link ¶
Changes (response)
{'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'
)
type OpsItemId

string

param OpsItemId

[REQUIRED]

The ID of the OpsItem that you want to get.

rtype

dict

returns

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.

        Warning

        Operational data keys can't begin with the following: amazon, aws, amzn, ssm, /amazon, /aws, /amzn, /ssm.

        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.

GetOpsSummary (updated) Link ¶
Changes (request, response)
Request
{'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
)
type SyncName

string

param SyncName

Specify the name of a resource data sync to get.

type Filters

list

param Filters

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.

type Aggregators

list

param Aggregators

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.

type ResultAttributes

list

param ResultAttributes

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.

type NextToken

string

param NextToken

A token to start the list. Use this token to get the next set of results.

type MaxResults

integer

param MaxResults

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.

rtype

dict

returns

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.

ListResourceDataSync (updated) Link ¶
Changes (request, response)
Request
{'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
)
type SyncType

string

param SyncType

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.

type NextToken

string

param NextToken

A token to start the list. Use this token to get the next set of results.

type MaxResults

integer

param MaxResults

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.

rtype

dict

returns

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.

UpdateOpsItem (updated) Link ¶
Changes (request)
{'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'
)
type Description

string

param Description

Update the information about the OpsItem. Provide enough information so that users reading this OpsItem for the first time understand the issue.

type OperationalData

dict

param OperationalData

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.

Warning

Operational data keys can't begin with the following: amazon, aws, amzn, ssm, /amazon, /aws, /amzn, /ssm.

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 .

type OperationalDataToDelete

list

param OperationalDataToDelete

Keys that you want to remove from the OperationalData map.

  • (string) --

type Notifications

list

param Notifications

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.

type Priority

integer

param Priority

The importance of this OpsItem in relation to other OpsItems in the system.

type RelatedOpsItems

list

param RelatedOpsItems

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.

type Status

string

param Status

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 .

type OpsItemId

string

param OpsItemId

[REQUIRED]

The ID of the OpsItem.

type Title

string

param Title

A short heading that describes the nature of the OpsItem and the impacted resource.

type Category

string

param Category

Specify a new category for an OpsItem.

type Severity

string

param Severity

Specify a new severity for an OpsItem.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --