Amazon CloudWatch Application Insights

2023/10/31 - Amazon CloudWatch Application Insights - 5 updated api methods

Changes  Automate attaching managed policies

CreateApplication (updated) Link ¶
Changes (request, response)
Request
{'AttachMissingPermission': 'boolean'}
Response
{'ApplicationInfo': {'AttachMissingPermission': 'boolean'}}

Adds an application that is created from a resource group.

See also: AWS API Documentation

Request Syntax

client.create_application(
    ResourceGroupName='string',
    OpsCenterEnabled=True|False,
    CWEMonitorEnabled=True|False,
    OpsItemSNSTopicArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    AutoConfigEnabled=True|False,
    AutoCreate=True|False,
    GroupingType='ACCOUNT_BASED',
    AttachMissingPermission=True|False
)
type ResourceGroupName:

string

param ResourceGroupName:

The name of the resource group.

type OpsCenterEnabled:

boolean

param OpsCenterEnabled:

When set to true, creates opsItems for any problems detected on an application.

type CWEMonitorEnabled:

boolean

param CWEMonitorEnabled:

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

type OpsItemSNSTopicArn:

string

param OpsItemSNSTopicArn:

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

type Tags:

list

param Tags:

List of tags to add to the application. tag key ( Key) and an associated tag value ( Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

  • (dict) --

    An object that defines the tags associated with an application. A tag is a label that you optionally define and associate with an application. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria.

    Each tag consists of a required tag key and an associated tag value, both of which you define. A tag key is a general label that acts as a category for a more specific tag value. A tag value acts as a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, digits, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags:

    • Tag keys and values are case sensitive.

    • For each associated resource, each tag key must be unique and it can have only one value.

    • The aws: prefix is reserved for use by AWS; you can’t use it in any tag keys or values that you define. In addition, you can't edit or remove tag keys or values that use this prefix.

    • Key (string) -- [REQUIRED]

      One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

    • Value (string) -- [REQUIRED]

      The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want an application to have a specific tag value, don't specify a value for this parameter.

type AutoConfigEnabled:

boolean

param AutoConfigEnabled:

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

type AutoCreate:

boolean

param AutoCreate:

Configures all of the resources in the resource group by applying the recommended configurations.

type GroupingType:

string

param GroupingType:

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

type AttachMissingPermission:

boolean

param AttachMissingPermission:

If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

rtype:

dict

returns:

Response Syntax

{
    'ApplicationInfo': {
        'AccountId': 'string',
        'ResourceGroupName': 'string',
        'LifeCycle': 'string',
        'OpsItemSNSTopicArn': 'string',
        'OpsCenterEnabled': True|False,
        'CWEMonitorEnabled': True|False,
        'Remarks': 'string',
        'AutoConfigEnabled': True|False,
        'DiscoveryType': 'RESOURCE_GROUP_BASED'|'ACCOUNT_BASED',
        'AttachMissingPermission': True|False
    }
}

Response Structure

  • (dict) --

    • ApplicationInfo (dict) --

      Information about the application.

      • AccountId (string) --

        The AWS account ID for the owner of the application.

      • ResourceGroupName (string) --

        The name of the resource group used for the application.

      • LifeCycle (string) --

        The lifecycle of the application.

      • OpsItemSNSTopicArn (string) --

        The SNS topic provided to Application Insights that is associated to the created opsItems to receive SNS notifications for opsItem updates.

      • OpsCenterEnabled (boolean) --

        Indicates whether Application Insights will create opsItems for any problem detected by Application Insights for an application.

      • CWEMonitorEnabled (boolean) --

        Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

      • Remarks (string) --

        The issues on the user side that block Application Insights from successfully monitoring an application. Example remarks include:

        • “Configuring application, detected 1 Errors, 3 Warnings”

        • “Configuring application, detected 1 Unconfigured Components”

      • AutoConfigEnabled (boolean) --

        Indicates whether auto-configuration is turned on for this application.

      • DiscoveryType (string) --

        The method used by Application Insights to onboard your resources.

      • AttachMissingPermission (boolean) --

        If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

DescribeApplication (updated) Link ¶
Changes (response)
{'ApplicationInfo': {'AttachMissingPermission': 'boolean'}}

Describes the application.

See also: AWS API Documentation

Request Syntax

client.describe_application(
    ResourceGroupName='string',
    AccountId='string'
)
type ResourceGroupName:

string

param ResourceGroupName:

[REQUIRED]

The name of the resource group.

type AccountId:

string

param AccountId:

The AWS account ID for the resource group owner.

rtype:

dict

returns:

Response Syntax

{
    'ApplicationInfo': {
        'AccountId': 'string',
        'ResourceGroupName': 'string',
        'LifeCycle': 'string',
        'OpsItemSNSTopicArn': 'string',
        'OpsCenterEnabled': True|False,
        'CWEMonitorEnabled': True|False,
        'Remarks': 'string',
        'AutoConfigEnabled': True|False,
        'DiscoveryType': 'RESOURCE_GROUP_BASED'|'ACCOUNT_BASED',
        'AttachMissingPermission': True|False
    }
}

Response Structure

  • (dict) --

    • ApplicationInfo (dict) --

      Information about the application.

      • AccountId (string) --

        The AWS account ID for the owner of the application.

      • ResourceGroupName (string) --

        The name of the resource group used for the application.

      • LifeCycle (string) --

        The lifecycle of the application.

      • OpsItemSNSTopicArn (string) --

        The SNS topic provided to Application Insights that is associated to the created opsItems to receive SNS notifications for opsItem updates.

      • OpsCenterEnabled (boolean) --

        Indicates whether Application Insights will create opsItems for any problem detected by Application Insights for an application.

      • CWEMonitorEnabled (boolean) --

        Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

      • Remarks (string) --

        The issues on the user side that block Application Insights from successfully monitoring an application. Example remarks include:

        • “Configuring application, detected 1 Errors, 3 Warnings”

        • “Configuring application, detected 1 Unconfigured Components”

      • AutoConfigEnabled (boolean) --

        Indicates whether auto-configuration is turned on for this application.

      • DiscoveryType (string) --

        The method used by Application Insights to onboard your resources.

      • AttachMissingPermission (boolean) --

        If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

DescribeComponentConfigurationRecommendation (updated) Link ¶
Changes (request)
{'WorkloadName': 'string'}

Describes the recommended monitoring configuration of the component.

See also: AWS API Documentation

Request Syntax

client.describe_component_configuration_recommendation(
    ResourceGroupName='string',
    ComponentName='string',
    Tier='CUSTOM'|'DEFAULT'|'DOT_NET_CORE'|'DOT_NET_WORKER'|'DOT_NET_WEB_TIER'|'DOT_NET_WEB'|'SQL_SERVER'|'SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP'|'MYSQL'|'POSTGRESQL'|'JAVA_JMX'|'ORACLE'|'SAP_HANA_MULTI_NODE'|'SAP_HANA_SINGLE_NODE'|'SAP_HANA_HIGH_AVAILABILITY'|'SQL_SERVER_FAILOVER_CLUSTER_INSTANCE'|'SHAREPOINT'|'ACTIVE_DIRECTORY'|'SAP_NETWEAVER_STANDARD'|'SAP_NETWEAVER_DISTRIBUTED'|'SAP_NETWEAVER_HIGH_AVAILABILITY',
    WorkloadName='string',
    RecommendationType='INFRA_ONLY'|'WORKLOAD_ONLY'|'ALL'
)
type ResourceGroupName:

string

param ResourceGroupName:

[REQUIRED]

The name of the resource group.

type ComponentName:

string

param ComponentName:

[REQUIRED]

The name of the component.

type Tier:

string

param Tier:

[REQUIRED]

The tier of the application component.

type WorkloadName:

string

param WorkloadName:

The name of the workload.

type RecommendationType:

string

param RecommendationType:

The recommended configuration type.

rtype:

dict

returns:

Response Syntax

{
    'ComponentConfiguration': 'string'
}

Response Structure

  • (dict) --

    • ComponentConfiguration (string) --

      The recommended configuration settings of the component. The value is the escaped JSON of the configuration.

ListApplications (updated) Link ¶
Changes (response)
{'ApplicationInfoList': {'AttachMissingPermission': 'boolean'}}

Lists the IDs of the applications that you are monitoring.

See also: AWS API Documentation

Request Syntax

client.list_applications(
    MaxResults=123,
    NextToken='string',
    AccountId='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

type NextToken:

string

param NextToken:

The token to request the next page of results.

type AccountId:

string

param AccountId:

The AWS account ID for the resource group owner.

rtype:

dict

returns:

Response Syntax

{
    'ApplicationInfoList': [
        {
            'AccountId': 'string',
            'ResourceGroupName': 'string',
            'LifeCycle': 'string',
            'OpsItemSNSTopicArn': 'string',
            'OpsCenterEnabled': True|False,
            'CWEMonitorEnabled': True|False,
            'Remarks': 'string',
            'AutoConfigEnabled': True|False,
            'DiscoveryType': 'RESOURCE_GROUP_BASED'|'ACCOUNT_BASED',
            'AttachMissingPermission': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ApplicationInfoList (list) --

      The list of applications.

      • (dict) --

        Describes the status of the application.

        • AccountId (string) --

          The AWS account ID for the owner of the application.

        • ResourceGroupName (string) --

          The name of the resource group used for the application.

        • LifeCycle (string) --

          The lifecycle of the application.

        • OpsItemSNSTopicArn (string) --

          The SNS topic provided to Application Insights that is associated to the created opsItems to receive SNS notifications for opsItem updates.

        • OpsCenterEnabled (boolean) --

          Indicates whether Application Insights will create opsItems for any problem detected by Application Insights for an application.

        • CWEMonitorEnabled (boolean) --

          Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

        • Remarks (string) --

          The issues on the user side that block Application Insights from successfully monitoring an application. Example remarks include:

          • “Configuring application, detected 1 Errors, 3 Warnings”

          • “Configuring application, detected 1 Unconfigured Components”

        • AutoConfigEnabled (boolean) --

          Indicates whether auto-configuration is turned on for this application.

        • DiscoveryType (string) --

          The method used by Application Insights to onboard your resources.

        • AttachMissingPermission (boolean) --

          If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

    • NextToken (string) --

      The token used to retrieve the next page of results. This value is null when there are no more results to return.

UpdateApplication (updated) Link ¶
Changes (request, response)
Request
{'AttachMissingPermission': 'boolean'}
Response
{'ApplicationInfo': {'AttachMissingPermission': 'boolean'}}

Updates the application.

See also: AWS API Documentation

Request Syntax

client.update_application(
    ResourceGroupName='string',
    OpsCenterEnabled=True|False,
    CWEMonitorEnabled=True|False,
    OpsItemSNSTopicArn='string',
    RemoveSNSTopic=True|False,
    AutoConfigEnabled=True|False,
    AttachMissingPermission=True|False
)
type ResourceGroupName:

string

param ResourceGroupName:

[REQUIRED]

The name of the resource group.

type OpsCenterEnabled:

boolean

param OpsCenterEnabled:

When set to true, creates opsItems for any problems detected on an application.

type CWEMonitorEnabled:

boolean

param CWEMonitorEnabled:

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

type OpsItemSNSTopicArn:

string

param OpsItemSNSTopicArn:

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

type RemoveSNSTopic:

boolean

param RemoveSNSTopic:

Disassociates the SNS topic from the opsItem created for detected problems.

type AutoConfigEnabled:

boolean

param AutoConfigEnabled:

Turns auto-configuration on or off.

type AttachMissingPermission:

boolean

param AttachMissingPermission:

If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

rtype:

dict

returns:

Response Syntax

{
    'ApplicationInfo': {
        'AccountId': 'string',
        'ResourceGroupName': 'string',
        'LifeCycle': 'string',
        'OpsItemSNSTopicArn': 'string',
        'OpsCenterEnabled': True|False,
        'CWEMonitorEnabled': True|False,
        'Remarks': 'string',
        'AutoConfigEnabled': True|False,
        'DiscoveryType': 'RESOURCE_GROUP_BASED'|'ACCOUNT_BASED',
        'AttachMissingPermission': True|False
    }
}

Response Structure

  • (dict) --

    • ApplicationInfo (dict) --

      Information about the application.

      • AccountId (string) --

        The AWS account ID for the owner of the application.

      • ResourceGroupName (string) --

        The name of the resource group used for the application.

      • LifeCycle (string) --

        The lifecycle of the application.

      • OpsItemSNSTopicArn (string) --

        The SNS topic provided to Application Insights that is associated to the created opsItems to receive SNS notifications for opsItem updates.

      • OpsCenterEnabled (boolean) --

        Indicates whether Application Insights will create opsItems for any problem detected by Application Insights for an application.

      • CWEMonitorEnabled (boolean) --

        Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

      • Remarks (string) --

        The issues on the user side that block Application Insights from successfully monitoring an application. Example remarks include:

        • “Configuring application, detected 1 Errors, 3 Warnings”

        • “Configuring application, detected 1 Unconfigured Components”

      • AutoConfigEnabled (boolean) --

        Indicates whether auto-configuration is turned on for this application.

      • DiscoveryType (string) --

        The method used by Application Insights to onboard your resources.

      • AttachMissingPermission (boolean) --

        If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.