SDK for PHP 3.x

Client: Aws\ObservabilityAdmin\ObservabilityAdminClient
Service ID: observabilityadmin
Version: 2018-05-10

This page describes the parameters and results for the operations of the CloudWatch Observability Admin Service (2018-05-10), and shows how to use the Aws\ObservabilityAdmin\ObservabilityAdminClient object to call the described operations. This documentation is specific to the 2018-05-10 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

CreateTelemetryRule ( array $params = [] )
Creates a telemetry rule that defines how telemetry should be configured for Amazon Web Services resources in your account.
CreateTelemetryRuleForOrganization ( array $params = [] )
Creates a telemetry rule that applies across an Amazon Web Services Organization.
DeleteTelemetryRule ( array $params = [] )
Deletes a telemetry rule from your account.
DeleteTelemetryRuleForOrganization ( array $params = [] )
Deletes an organization-wide telemetry rule.
GetTelemetryEvaluationStatus ( array $params = [] )
Returns the current onboarding status of the telemetry config feature, including the status of the feature and reason the feature failed to start or stop.
GetTelemetryEvaluationStatusForOrganization ( array $params = [] )
This returns the onboarding status of the telemetry configuration feature for the organization.
GetTelemetryRule ( array $params = [] )
Retrieves the details of a specific telemetry rule in your account.
GetTelemetryRuleForOrganization ( array $params = [] )
Retrieves the details of a specific organization telemetry rule.
ListResourceTelemetry ( array $params = [] )
Returns a list of telemetry configurations for Amazon Web Services resources supported by telemetry config.
ListResourceTelemetryForOrganization ( array $params = [] )
Returns a list of telemetry configurations for Amazon Web Services resources supported by telemetry config in the organization.
ListTagsForResource ( array $params = [] )
Lists all tags attached to the specified telemetry rule resource.
ListTelemetryRules ( array $params = [] )
Lists all telemetry rules in your account.
ListTelemetryRulesForOrganization ( array $params = [] )
Lists all telemetry rules in your organization.
StartTelemetryEvaluation ( array $params = [] )
This action begins onboarding the caller Amazon Web Services account to the telemetry config feature.
StartTelemetryEvaluationForOrganization ( array $params = [] )
This actions begins onboarding the organization and all member accounts to the telemetry config feature.
StopTelemetryEvaluation ( array $params = [] )
This action begins offboarding the caller Amazon Web Services account from the telemetry config feature.
StopTelemetryEvaluationForOrganization ( array $params = [] )
This action offboards the Organization of the caller Amazon Web Services account from the telemetry config feature.
TagResource ( array $params = [] )
Adds or updates tags for a telemetry rule resource.
UntagResource ( array $params = [] )
Removes tags from a telemetry rule resource.
UpdateTelemetryRule ( array $params = [] )
Updates an existing telemetry rule in your account.
UpdateTelemetryRuleForOrganization ( array $params = [] )
Updates an existing telemetry rule that applies across an Amazon Web Services Organization.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

ListResourceTelemetry
ListResourceTelemetryForOrganization
ListTelemetryRules
ListTelemetryRulesForOrganization

Operations

CreateTelemetryRule

$result = $client->createTelemetryRule([/* ... */]);
$promise = $client->createTelemetryRuleAsync([/* ... */]);

Creates a telemetry rule that defines how telemetry should be configured for Amazon Web Services resources in your account. The rule specifies which resources should have telemetry enabled and how that telemetry data should be collected based on resource type, telemetry type, and selection criteria.

Parameter Syntax

$result = $client->createTelemetryRule([
    'Rule' => [ // REQUIRED
        'DestinationConfiguration' => [
            'DestinationPattern' => '<string>',
            'DestinationType' => 'cloud-watch-logs',
            'RetentionInDays' => <integer>,
            'VPCFlowLogParameters' => [
                'LogFormat' => '<string>',
                'MaxAggregationInterval' => <integer>,
                'TrafficType' => '<string>',
            ],
        ],
        'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
        'Scope' => '<string>',
        'SelectionCriteria' => '<string>',
        'TelemetryType' => 'Logs|Metrics|Traces', // REQUIRED
    ],
    'RuleName' => '<string>', // REQUIRED
    'Tags' => ['<string>', ...],
]);

Parameter Details

Members
Rule
Required: Yes
Type: TelemetryRule structure

The configuration details for the telemetry rule, including the resource type, telemetry type, destination configuration, and selection criteria for which resources the rule applies to.

RuleName
Required: Yes
Type: string

A unique name for the telemetry rule being created.

Tags
Type: Associative array of custom strings keys (TagKey) to strings

The key-value pairs to associate with the telemetry rule resource for categorization and management purposes.

Result Syntax

[
    'RuleArn' => '<string>',
]

Result Details

Members
RuleArn
Type: string

The Amazon Resource Name (ARN) of the created telemetry rule.

Errors

ServiceQuotaExceededException:

The requested operation would exceed the allowed quota for the specified resource type.

ConflictException:

The requested operation conflicts with the current state of the specified resource or with another request.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

CreateTelemetryRuleForOrganization

$result = $client->createTelemetryRuleForOrganization([/* ... */]);
$promise = $client->createTelemetryRuleForOrganizationAsync([/* ... */]);

Creates a telemetry rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.

Parameter Syntax

$result = $client->createTelemetryRuleForOrganization([
    'Rule' => [ // REQUIRED
        'DestinationConfiguration' => [
            'DestinationPattern' => '<string>',
            'DestinationType' => 'cloud-watch-logs',
            'RetentionInDays' => <integer>,
            'VPCFlowLogParameters' => [
                'LogFormat' => '<string>',
                'MaxAggregationInterval' => <integer>,
                'TrafficType' => '<string>',
            ],
        ],
        'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
        'Scope' => '<string>',
        'SelectionCriteria' => '<string>',
        'TelemetryType' => 'Logs|Metrics|Traces', // REQUIRED
    ],
    'RuleName' => '<string>', // REQUIRED
    'Tags' => ['<string>', ...],
]);

Parameter Details

Members
Rule
Required: Yes
Type: TelemetryRule structure

The configuration details for the organization-wide telemetry rule, including the resource type, telemetry type, destination configuration, and selection criteria for which resources the rule applies to across the organization.

RuleName
Required: Yes
Type: string

A unique name for the organization-wide telemetry rule being created.

Tags
Type: Associative array of custom strings keys (TagKey) to strings

The key-value pairs to associate with the organization telemetry rule resource for categorization and management purposes.

Result Syntax

[
    'RuleArn' => '<string>',
]

Result Details

Members
RuleArn
Type: string

The Amazon Resource Name (ARN) of the created organization telemetry rule.

Errors

ServiceQuotaExceededException:

The requested operation would exceed the allowed quota for the specified resource type.

ConflictException:

The requested operation conflicts with the current state of the specified resource or with another request.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

DeleteTelemetryRule

$result = $client->deleteTelemetryRule([/* ... */]);
$promise = $client->deleteTelemetryRuleAsync([/* ... */]);

Deletes a telemetry rule from your account. Any telemetry configurations previously created by the rule will remain but no new resources will be configured by this rule.

Parameter Syntax

$result = $client->deleteTelemetryRule([
    'RuleIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
RuleIdentifier
Required: Yes
Type: string

The identifier (name or ARN) of the telemetry rule to delete.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

DeleteTelemetryRuleForOrganization

$result = $client->deleteTelemetryRuleForOrganization([/* ... */]);
$promise = $client->deleteTelemetryRuleForOrganizationAsync([/* ... */]);

Deletes an organization-wide telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.

Parameter Syntax

$result = $client->deleteTelemetryRuleForOrganization([
    'RuleIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
RuleIdentifier
Required: Yes
Type: string

The identifier (name or ARN) of the organization telemetry rule to delete.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

GetTelemetryEvaluationStatus

$result = $client->getTelemetryEvaluationStatus([/* ... */]);
$promise = $client->getTelemetryEvaluationStatusAsync([/* ... */]);

Returns the current onboarding status of the telemetry config feature, including the status of the feature and reason the feature failed to start or stop.

Parameter Syntax

$result = $client->getTelemetryEvaluationStatus([
]);

Parameter Details

Members

Result Syntax

[
    'FailureReason' => '<string>',
    'Status' => 'NOT_STARTED|STARTING|FAILED_START|RUNNING|STOPPING|FAILED_STOP|STOPPED',
]

Result Details

Members
FailureReason
Type: string

Describes the reason for the failure status. The field will only be populated if Status is FAILED_START or FAILED_STOP.

Status
Type: string

The onboarding status of the telemetry config feature.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

TooManyRequestsException:

The request throughput limit was exceeded.

GetTelemetryEvaluationStatusForOrganization

$result = $client->getTelemetryEvaluationStatusForOrganization([/* ... */]);
$promise = $client->getTelemetryEvaluationStatusForOrganizationAsync([/* ... */]);

This returns the onboarding status of the telemetry configuration feature for the organization. It can only be called by a Management Account of an Amazon Web Services Organization or an assigned Delegated Admin Account of Amazon CloudWatch telemetry config.

Parameter Syntax

$result = $client->getTelemetryEvaluationStatusForOrganization([
]);

Parameter Details

Members

Result Syntax

[
    'FailureReason' => '<string>',
    'Status' => 'NOT_STARTED|STARTING|FAILED_START|RUNNING|STOPPING|FAILED_STOP|STOPPED',
]

Result Details

Members
FailureReason
Type: string

This field describes the reason for the failure status. The field will only be populated if Status is FAILED_START or FAILED_STOP.

Status
Type: string

The onboarding status of the telemetry config feature for the organization.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

GetTelemetryRule

$result = $client->getTelemetryRule([/* ... */]);
$promise = $client->getTelemetryRuleAsync([/* ... */]);

Retrieves the details of a specific telemetry rule in your account.

Parameter Syntax

$result = $client->getTelemetryRule([
    'RuleIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
RuleIdentifier
Required: Yes
Type: string

The identifier (name or ARN) of the telemetry rule to retrieve.

Result Syntax

[
    'CreatedTimeStamp' => <integer>,
    'LastUpdateTimeStamp' => <integer>,
    'RuleArn' => '<string>',
    'RuleName' => '<string>',
    'TelemetryRule' => [
        'DestinationConfiguration' => [
            'DestinationPattern' => '<string>',
            'DestinationType' => 'cloud-watch-logs',
            'RetentionInDays' => <integer>,
            'VPCFlowLogParameters' => [
                'LogFormat' => '<string>',
                'MaxAggregationInterval' => <integer>,
                'TrafficType' => '<string>',
            ],
        ],
        'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
        'Scope' => '<string>',
        'SelectionCriteria' => '<string>',
        'TelemetryType' => 'Logs|Metrics|Traces',
    ],
]

Result Details

Members
CreatedTimeStamp
Type: long (int|float)

The timestamp when the telemetry rule was created.

LastUpdateTimeStamp
Type: long (int|float)

The timestamp when the telemetry rule was last updated.

RuleArn
Type: string

The Amazon Resource Name (ARN) of the telemetry rule.

RuleName
Type: string

The name of the telemetry rule.

TelemetryRule
Type: TelemetryRule structure

The configuration details of the telemetry rule.

Errors

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

GetTelemetryRuleForOrganization

$result = $client->getTelemetryRuleForOrganization([/* ... */]);
$promise = $client->getTelemetryRuleForOrganizationAsync([/* ... */]);

Retrieves the details of a specific organization telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.

Parameter Syntax

$result = $client->getTelemetryRuleForOrganization([
    'RuleIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
RuleIdentifier
Required: Yes
Type: string

The identifier (name or ARN) of the organization telemetry rule to retrieve.

Result Syntax

[
    'CreatedTimeStamp' => <integer>,
    'LastUpdateTimeStamp' => <integer>,
    'RuleArn' => '<string>',
    'RuleName' => '<string>',
    'TelemetryRule' => [
        'DestinationConfiguration' => [
            'DestinationPattern' => '<string>',
            'DestinationType' => 'cloud-watch-logs',
            'RetentionInDays' => <integer>,
            'VPCFlowLogParameters' => [
                'LogFormat' => '<string>',
                'MaxAggregationInterval' => <integer>,
                'TrafficType' => '<string>',
            ],
        ],
        'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
        'Scope' => '<string>',
        'SelectionCriteria' => '<string>',
        'TelemetryType' => 'Logs|Metrics|Traces',
    ],
]

Result Details

Members
CreatedTimeStamp
Type: long (int|float)

The timestamp when the organization telemetry rule was created.

LastUpdateTimeStamp
Type: long (int|float)

The timestamp when the organization telemetry rule was last updated.

RuleArn
Type: string

The Amazon Resource Name (ARN) of the organization telemetry rule.

RuleName
Type: string

The name of the organization telemetry rule.

TelemetryRule
Type: TelemetryRule structure

The configuration details of the organization telemetry rule.

Errors

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

ListResourceTelemetry

$result = $client->listResourceTelemetry([/* ... */]);
$promise = $client->listResourceTelemetryAsync([/* ... */]);

Returns a list of telemetry configurations for Amazon Web Services resources supported by telemetry config. For more information, see Auditing CloudWatch telemetry configurations.

Parameter Syntax

$result = $client->listResourceTelemetry([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'ResourceIdentifierPrefix' => '<string>',
    'ResourceTags' => ['<string>', ...],
    'ResourceTypes' => ['<string>', ...],
    'TelemetryConfigurationState' => ['<string>', ...],
]);

Parameter Details

Members
MaxResults
Type: int

A number field used to limit the number of results within the returned list.

NextToken
Type: string

The token for the next set of items to return. A previous call generates this token.

ResourceIdentifierPrefix
Type: string

A string used to filter resources which have a ResourceIdentifier starting with the ResourceIdentifierPrefix.

ResourceTags
Type: Associative array of custom strings keys (TagKey) to strings

A key-value pair to filter resources based on tags associated with the resource. For more information about tags, see What are tags?

ResourceTypes
Type: Array of strings

A list of resource types used to filter resources supported by telemetry config. If this parameter is provided, the resources will be returned in the same order used in the request.

TelemetryConfigurationState
Type: Associative array of custom strings keys (TelemetryType) to strings

A key-value pair to filter resources based on the telemetry type and the state of the telemetry configuration. The key is the telemetry type and the value is the state.

Result Syntax

[
    'NextToken' => '<string>',
    'TelemetryConfigurations' => [
        [
            'AccountIdentifier' => '<string>',
            'LastUpdateTimeStamp' => <integer>,
            'ResourceIdentifier' => '<string>',
            'ResourceTags' => ['<string>', ...],
            'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
            'TelemetryConfigurationState' => ['<string>', ...],
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token for the next set of items to return. A previous call generates this token.

TelemetryConfigurations
Type: Array of TelemetryConfiguration structures

A list of telemetry configurations for Amazon Web Services resources supported by telemetry config in the caller's account.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

ListResourceTelemetryForOrganization

$result = $client->listResourceTelemetryForOrganization([/* ... */]);
$promise = $client->listResourceTelemetryForOrganizationAsync([/* ... */]);

Returns a list of telemetry configurations for Amazon Web Services resources supported by telemetry config in the organization.

Parameter Syntax

$result = $client->listResourceTelemetryForOrganization([
    'AccountIdentifiers' => ['<string>', ...],
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'ResourceIdentifierPrefix' => '<string>',
    'ResourceTags' => ['<string>', ...],
    'ResourceTypes' => ['<string>', ...],
    'TelemetryConfigurationState' => ['<string>', ...],
]);

Parameter Details

Members
AccountIdentifiers
Type: Array of strings

A list of Amazon Web Services accounts used to filter the resources to those associated with the specified accounts.

MaxResults
Type: int

A number field used to limit the number of results within the returned list.

NextToken
Type: string

The token for the next set of items to return. A previous call provides this token.

ResourceIdentifierPrefix
Type: string

A string used to filter resources in the organization which have a ResourceIdentifier starting with the ResourceIdentifierPrefix.

ResourceTags
Type: Associative array of custom strings keys (TagKey) to strings

A key-value pair to filter resources in the organization based on tags associated with the resource. Fore more information about tags, see What are tags?

ResourceTypes
Type: Array of strings

A list of resource types used to filter resources in the organization. If this parameter is provided, the resources will be returned in the same order used in the request.

TelemetryConfigurationState
Type: Associative array of custom strings keys (TelemetryType) to strings

A key-value pair to filter resources in the organization based on the telemetry type and the state of the telemetry configuration. The key is the telemetry type and the value is the state.

Result Syntax

[
    'NextToken' => '<string>',
    'TelemetryConfigurations' => [
        [
            'AccountIdentifier' => '<string>',
            'LastUpdateTimeStamp' => <integer>,
            'ResourceIdentifier' => '<string>',
            'ResourceTags' => ['<string>', ...],
            'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
            'TelemetryConfigurationState' => ['<string>', ...],
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token for the next set of items to return. A previous call provides this token.

TelemetryConfigurations
Type: Array of TelemetryConfiguration structures

A list of telemetry configurations for Amazon Web Services resources supported by telemetry config in the organization.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

ListTagsForResource

$result = $client->listTagsForResource([/* ... */]);
$promise = $client->listTagsForResourceAsync([/* ... */]);

Lists all tags attached to the specified telemetry rule resource.

Parameter Syntax

$result = $client->listTagsForResource([
    'ResourceARN' => '<string>', // REQUIRED
]);

Parameter Details

Members
ResourceARN
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the telemetry rule resource whose tags you want to list.

Result Syntax

[
    'Tags' => ['<string>', ...],
]

Result Details

Members
Tags
Required: Yes
Type: Associative array of custom strings keys (String) to strings

The list of tags associated with the telemetry rule resource.

Errors

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

ListTelemetryRules

$result = $client->listTelemetryRules([/* ... */]);
$promise = $client->listTelemetryRulesAsync([/* ... */]);

Lists all telemetry rules in your account. You can filter the results by specifying a rule name prefix.

Parameter Syntax

$result = $client->listTelemetryRules([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'RuleNamePrefix' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of telemetry rules to return in a single call.

NextToken
Type: string

The token for the next set of results. A previous call generates this token.

RuleNamePrefix
Type: string

A string to filter telemetry rules whose names begin with the specified prefix.

Result Syntax

[
    'NextToken' => '<string>',
    'TelemetryRuleSummaries' => [
        [
            'CreatedTimeStamp' => <integer>,
            'LastUpdateTimeStamp' => <integer>,
            'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
            'RuleArn' => '<string>',
            'RuleName' => '<string>',
            'TelemetryType' => 'Logs|Metrics|Traces',
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

A token to resume pagination of results.

TelemetryRuleSummaries
Type: Array of TelemetryRuleSummary structures

A list of telemetry rule summaries.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

ListTelemetryRulesForOrganization

$result = $client->listTelemetryRulesForOrganization([/* ... */]);
$promise = $client->listTelemetryRulesForOrganizationAsync([/* ... */]);

Lists all telemetry rules in your organization. This operation can only be called by the organization's management account or a delegated administrator account.

Parameter Syntax

$result = $client->listTelemetryRulesForOrganization([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'RuleNamePrefix' => '<string>',
    'SourceAccountIds' => ['<string>', ...],
    'SourceOrganizationUnitIds' => ['<string>', ...],
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of organization telemetry rules to return in a single call.

NextToken
Type: string

The token for the next set of results. A previous call generates this token.

RuleNamePrefix
Type: string

A string to filter organization telemetry rules whose names begin with the specified prefix.

SourceAccountIds
Type: Array of strings

The list of account IDs to filter organization telemetry rules by their source accounts.

SourceOrganizationUnitIds
Type: Array of strings

The list of organizational unit IDs to filter organization telemetry rules by their source organizational units.

Result Syntax

[
    'NextToken' => '<string>',
    'TelemetryRuleSummaries' => [
        [
            'CreatedTimeStamp' => <integer>,
            'LastUpdateTimeStamp' => <integer>,
            'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
            'RuleArn' => '<string>',
            'RuleName' => '<string>',
            'TelemetryType' => 'Logs|Metrics|Traces',
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

A token to resume pagination of results.

TelemetryRuleSummaries
Type: Array of TelemetryRuleSummary structures

A list of organization telemetry rule summaries.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

StartTelemetryEvaluation

$result = $client->startTelemetryEvaluation([/* ... */]);
$promise = $client->startTelemetryEvaluationAsync([/* ... */]);

This action begins onboarding the caller Amazon Web Services account to the telemetry config feature.

Parameter Syntax

$result = $client->startTelemetryEvaluation([
]);

Parameter Details

Members

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

StartTelemetryEvaluationForOrganization

$result = $client->startTelemetryEvaluationForOrganization([/* ... */]);
$promise = $client->startTelemetryEvaluationForOrganizationAsync([/* ... */]);

This actions begins onboarding the organization and all member accounts to the telemetry config feature.

Parameter Syntax

$result = $client->startTelemetryEvaluationForOrganization([
]);

Parameter Details

Members

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

StopTelemetryEvaluation

$result = $client->stopTelemetryEvaluation([/* ... */]);
$promise = $client->stopTelemetryEvaluationAsync([/* ... */]);

This action begins offboarding the caller Amazon Web Services account from the telemetry config feature.

Parameter Syntax

$result = $client->stopTelemetryEvaluation([
]);

Parameter Details

Members

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

StopTelemetryEvaluationForOrganization

$result = $client->stopTelemetryEvaluationForOrganization([/* ... */]);
$promise = $client->stopTelemetryEvaluationForOrganizationAsync([/* ... */]);

This action offboards the Organization of the caller Amazon Web Services account from the telemetry config feature.

Parameter Syntax

$result = $client->stopTelemetryEvaluationForOrganization([
]);

Parameter Details

Members

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds or updates tags for a telemetry rule resource.

Parameter Syntax

$result = $client->tagResource([
    'ResourceARN' => '<string>', // REQUIRED
    'Tags' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ResourceARN
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the telemetry rule resource to tag.

Tags
Required: Yes
Type: Associative array of custom strings keys (TagKey) to strings

The key-value pairs to add or update for the telemetry rule resource.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The requested operation would exceed the allowed quota for the specified resource type.

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes tags from a telemetry rule resource.

Parameter Syntax

$result = $client->untagResource([
    'ResourceARN' => '<string>', // REQUIRED
    'TagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ResourceARN
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the telemetry rule resource to remove tags from.

TagKeys
Required: Yes
Type: Array of strings

The list of tag keys to remove from the telemetry rule resource.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

UpdateTelemetryRule

$result = $client->updateTelemetryRule([/* ... */]);
$promise = $client->updateTelemetryRuleAsync([/* ... */]);

Updates an existing telemetry rule in your account.

Parameter Syntax

$result = $client->updateTelemetryRule([
    'Rule' => [ // REQUIRED
        'DestinationConfiguration' => [
            'DestinationPattern' => '<string>',
            'DestinationType' => 'cloud-watch-logs',
            'RetentionInDays' => <integer>,
            'VPCFlowLogParameters' => [
                'LogFormat' => '<string>',
                'MaxAggregationInterval' => <integer>,
                'TrafficType' => '<string>',
            ],
        ],
        'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
        'Scope' => '<string>',
        'SelectionCriteria' => '<string>',
        'TelemetryType' => 'Logs|Metrics|Traces', // REQUIRED
    ],
    'RuleIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
Rule
Required: Yes
Type: TelemetryRule structure

The new configuration details for the telemetry rule.

RuleIdentifier
Required: Yes
Type: string

The identifier (name or ARN) of the telemetry rule to update.

Result Syntax

[
    'RuleArn' => '<string>',
]

Result Details

Members
RuleArn
Type: string

The Amazon Resource Name (ARN) of the updated telemetry rule.

Errors

ServiceQuotaExceededException:

The requested operation would exceed the allowed quota for the specified resource type.

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

UpdateTelemetryRuleForOrganization

$result = $client->updateTelemetryRuleForOrganization([/* ... */]);
$promise = $client->updateTelemetryRuleForOrganizationAsync([/* ... */]);

Updates an existing telemetry rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.

Parameter Syntax

$result = $client->updateTelemetryRuleForOrganization([
    'Rule' => [ // REQUIRED
        'DestinationConfiguration' => [
            'DestinationPattern' => '<string>',
            'DestinationType' => 'cloud-watch-logs',
            'RetentionInDays' => <integer>,
            'VPCFlowLogParameters' => [
                'LogFormat' => '<string>',
                'MaxAggregationInterval' => <integer>,
                'TrafficType' => '<string>',
            ],
        ],
        'ResourceType' => 'AWS::EC2::Instance|AWS::EC2::VPC|AWS::Lambda::Function',
        'Scope' => '<string>',
        'SelectionCriteria' => '<string>',
        'TelemetryType' => 'Logs|Metrics|Traces', // REQUIRED
    ],
    'RuleIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
Rule
Required: Yes
Type: TelemetryRule structure

The new configuration details for the organization telemetry rule, including resource type, telemetry type, and destination configuration.

RuleIdentifier
Required: Yes
Type: string

The identifier (name or ARN) of the organization telemetry rule to update.

Result Syntax

[
    'RuleArn' => '<string>',
]

Result Details

Members
RuleArn
Type: string

The Amazon Resource Name (ARN) of the updated organization telemetry rule.

Errors

ServiceQuotaExceededException:

The requested operation would exceed the allowed quota for the specified resource type.

ResourceNotFoundException:

The specified resource (such as a telemetry rule) could not be found.

AccessDeniedException:

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

InternalServerException:

Indicates the request has failed to process because of an unknown server error, exception, or failure.

ValidationException:

Indicates input validation failed. Check your request parameters and retry the request.

TooManyRequestsException:

The request throughput limit was exceeded.

Shapes

AccessDeniedException

Description

Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.

Members
Message
Type: string
amznErrorType
Type: string

The name of the exception.

ConflictException

Description

The requested operation conflicts with the current state of the specified resource or with another request.

Members
Message
Type: string

InternalServerException

Description

Indicates the request has failed to process because of an unknown server error, exception, or failure.

Members
Message
Type: string
amznErrorType
Type: string

The name of the exception.

ResourceNotFoundException

Description

The specified resource (such as a telemetry rule) could not be found.

Members
Message
Type: string

ServiceQuotaExceededException

Description

The requested operation would exceed the allowed quota for the specified resource type.

Members
Message
Type: string
amznErrorType
Type: string

The name of the exception.

TelemetryConfiguration

Description

A model representing the state of a resource within an account according to telemetry config.

Members
AccountIdentifier
Type: string

The account ID which contains the resource managed in telemetry configuration. An example of a valid account ID is 012345678901.

LastUpdateTimeStamp
Type: long (int|float)

The timestamp of the last change to the telemetry configuration for the resource. For example, 1728679196318.

ResourceIdentifier
Type: string

The identifier of the resource, for example i-0b22a22eec53b9321.

ResourceTags
Type: Associative array of custom strings keys (String) to strings

Tags associated with the resource, for example { Name: "ExampleInstance", Environment: "Development" }.

ResourceType
Type: string

The type of resource, for example Amazon Web Services::EC2::Instance.

TelemetryConfigurationState
Type: Associative array of custom strings keys (TelemetryType) to strings

The configuration state for the resource, for example { Logs: NotApplicable; Metrics: Enabled; Traces: NotApplicable; }.

TelemetryDestinationConfiguration

Description

Configuration specifying where and how telemetry data should be delivered for Amazon Web Services resources.

Members
DestinationPattern
Type: string

The pattern used to generate the destination path or name, supporting macros like <resourceId> and <accountId>.

DestinationType
Type: string

The type of destination for the telemetry data (e.g., "Amazon CloudWatch Logs", "S3").

RetentionInDays
Type: int

The number of days to retain the telemetry data in the destination.

VPCFlowLogParameters
Type: VPCFlowLogParameters structure

Configuration parameters specific to VPC Flow Logs when VPC is the resource type.

TelemetryRule

Description

Defines how telemetry should be configured for specific Amazon Web Services resources.

Members
DestinationConfiguration

Configuration specifying where and how the telemetry data should be delivered.

ResourceType
Type: string

The type of Amazon Web Services resource to configure telemetry for (e.g., "AWS::EC2::VPC").

Scope
Type: string

The organizational scope to which the rule applies, specified using accounts or organizational units.

SelectionCriteria
Type: string

Criteria for selecting which resources the rule applies to, such as resource tags.

TelemetryType
Required: Yes
Type: string

The type of telemetry to collect (Logs, Metrics, or Traces).

TelemetryRuleSummary

Description

A summary of a telemetry rule's key properties.

Members
CreatedTimeStamp
Type: long (int|float)

The timestamp when the telemetry rule was created.

LastUpdateTimeStamp
Type: long (int|float)

The timestamp when the telemetry rule was last modified.

ResourceType
Type: string

The type of Amazon Web Services resource the rule applies to.

RuleArn
Type: string

The Amazon Resource Name (ARN) of the telemetry rule.

RuleName
Type: string

The name of the telemetry rule.

TelemetryType
Type: string

The type of telemetry (Logs, Metrics, or Traces) the rule configures.

TooManyRequestsException

Description

The request throughput limit was exceeded.

Members
Message
Type: string

VPCFlowLogParameters

Description

Configuration parameters specific to VPC Flow Logs.

Members
LogFormat
Type: string

The format in which VPC Flow Log entries should be logged.

MaxAggregationInterval
Type: int

The maximum interval in seconds between the capture of flow log records.

TrafficType
Type: string

The type of traffic to log (ACCEPT, REJECT, or ALL).

ValidationException

Description

Indicates input validation failed. Check your request parameters and retry the request.

Members
Message
Type: string