AWS Config

2019/11/21 - AWS Config - 2 new api methods

Changes  AWS Config launches Custom Configuration Items. A new feature which allows customers to publish resource configuration for third-party resources, custom, or on-premises servers.

PutResourceConfig (new) Link ¶

Records the configuration state for the resource provided in the request. The configuration state of a resource is represented in AWS Config as Configuration Items. Once this API records the configuration item, you can retrieve the list of configuration items for the custom resource type using existing AWS Config APIs.

Note

The custom resource type must be registered with AWS CloudFormation. This API accepts the configuration item registered with AWS CloudFormation.

When you call this API, AWS Config only stores configuration state of the resource provided in the request. This API does not change or remediate the configuration of the resource.

See also: AWS API Documentation

Request Syntax

client.put_resource_config(
    ResourceType='string',
    SchemaVersionId='string',
    ResourceId='string',
    ResourceName='string',
    Configuration='string',
    Tags={
        'string': 'string'
    }
)
type ResourceType

string

param ResourceType

[REQUIRED]

The type of the resource. The custom resource type must be registered with AWS CloudFormation.

Note

You cannot use the organization names “aws”, “amzn”, “amazon”, “alexa”, “custom” with custom resource types. It is the first part of the ResourceType up to the first ::.

type SchemaVersionId

string

param SchemaVersionId

[REQUIRED]

Version of the schema registered for the ResourceType in AWS CloudFormation.

type ResourceId

string

param ResourceId

[REQUIRED]

Unique identifier of the resource.

type ResourceName

string

param ResourceName

Name of the resource.

type Configuration

string

param Configuration

[REQUIRED]

The configuration object of the resource in valid JSON format. It must match the schema registered with AWS CloudFormation.

Note

The configuration JSON must not exceed 64 KB.

type Tags

dict

param Tags

Tags associated with the resource.

  • (string) --

    • (string) --

returns

None

DeleteResourceConfig (new) Link ¶

Records the configuration state for a custom resource that has been deleted. This API records a new ConfigurationItem with a ResourceDeleted status. You can retrieve the ConfigurationItems recorded for this resource in your AWS Config History.

See also: AWS API Documentation

Request Syntax

client.delete_resource_config(
    ResourceType='string',
    ResourceId='string'
)
type ResourceType

string

param ResourceType

[REQUIRED]

The type of the resource.

type ResourceId

string

param ResourceId

[REQUIRED]

Unique identifier of the resource.

returns

None