Class: AWS.ConfigService

Inherits:
AWS.Service show all
Identifier:
configservice
API Version:
2014-11-12
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

AWS Config provides a way to keep track of the configurations of all the AWS resources associated with your AWS account. You can use AWS Config to get the current and historical configurations of each AWS resource and also to get information about the relationship between the resources. An AWS resource can be an Amazon Compute Cloud (Amazon EC2) instance, an Elastic Block Store (EBS) volume, an elastic network Interface (ENI), or a security group. For a complete list of resources currently supported by AWS Config, see Supported AWS Resources.

You can access and manage AWS Config through the AWS Management Console, the AWS Command Line Interface (AWS CLI), the AWS Config API, or the AWS SDKs for AWS Config. This reference guide contains documentation for the AWS Config API and the AWS CLI commands that you can use to manage AWS Config. The AWS Config API uses the Signature Version 4 protocol for signing requests. For more information about how to sign a request with this protocol, see Signature Version 4 Signing Process. For detailed information about AWS Config features and their associated actions or commands, as well as how to work with AWS Management Console, see What Is AWS Config in the AWS Config Developer Guide.

Sending a Request Using ConfigService

var configservice = new AWS.ConfigService();
configservice.batchGetAggregateResourceConfig(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the ConfigService object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var configservice = new AWS.ConfigService({apiVersion: '2014-11-12'});

You can also set the API version globally in AWS.config.apiVersions using the configservice service identifier:

AWS.config.apiVersions = {
  configservice: '2014-11-12',
  // other service API versions
};

var configservice = new AWS.ConfigService();

Version:

  • 2014-11-12

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.ConfigService(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a ConfigService object

var configservice = new AWS.ConfigService({apiVersion: '2014-11-12'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com'.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.ConfigService.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.ConfigService.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.ConfigService.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean)

    whether to enable endpoint discovery for operations that allow optionally using an endpoint returned by the service. Defaults to 'false'

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

batchGetAggregateResourceConfig(params = {}, callback) ⇒ AWS.Request

Returns the current configuration items for resources that are present in your AWS Config aggregator. The operation also returns a list of resources that are not processed in the current request. If there are no unprocessed resources, the operation returns an empty unprocessedResourceIdentifiers list.

Note:
  • The API does not return results for deleted resources.
  • The API does not return tags and relationships.

Service Reference:

Examples:

Calling the batchGetAggregateResourceConfig operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  ResourceIdentifiers: [ /* required */
    {
      ResourceId: 'STRING_VALUE', /* required */
      ResourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio, /* required */
      SourceAccountId: 'STRING_VALUE', /* required */
      SourceRegion: 'STRING_VALUE', /* required */
      ResourceName: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.batchGetAggregateResourceConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • ResourceIdentifiers — (Array<map>)

      A list of aggregate ResourceIdentifiers objects.

      • SourceAccountIdrequired — (String)

        The 12-digit account ID of the source account.

      • SourceRegionrequired — (String)

        The source region where data is aggregated.

      • ResourceIdrequired — (String)

        The ID of the AWS resource.

      • ResourceTyperequired — (String)

        The type of the AWS resource.

        Possible values include:
        • "AWS::EC2::CustomerGateway"
        • "AWS::EC2::EIP"
        • "AWS::EC2::Host"
        • "AWS::EC2::Instance"
        • "AWS::EC2::InternetGateway"
        • "AWS::EC2::NetworkAcl"
        • "AWS::EC2::NetworkInterface"
        • "AWS::EC2::RouteTable"
        • "AWS::EC2::SecurityGroup"
        • "AWS::EC2::Subnet"
        • "AWS::CloudTrail::Trail"
        • "AWS::EC2::Volume"
        • "AWS::EC2::VPC"
        • "AWS::EC2::VPNConnection"
        • "AWS::EC2::VPNGateway"
        • "AWS::EC2::RegisteredHAInstance"
        • "AWS::EC2::NatGateway"
        • "AWS::EC2::EgressOnlyInternetGateway"
        • "AWS::EC2::VPCEndpoint"
        • "AWS::EC2::VPCEndpointService"
        • "AWS::EC2::FlowLog"
        • "AWS::EC2::VPCPeeringConnection"
        • "AWS::IAM::Group"
        • "AWS::IAM::Policy"
        • "AWS::IAM::Role"
        • "AWS::IAM::User"
        • "AWS::ElasticLoadBalancingV2::LoadBalancer"
        • "AWS::ACM::Certificate"
        • "AWS::RDS::DBInstance"
        • "AWS::RDS::DBParameterGroup"
        • "AWS::RDS::DBOptionGroup"
        • "AWS::RDS::DBSubnetGroup"
        • "AWS::RDS::DBSecurityGroup"
        • "AWS::RDS::DBSnapshot"
        • "AWS::RDS::DBCluster"
        • "AWS::RDS::DBClusterParameterGroup"
        • "AWS::RDS::DBClusterSnapshot"
        • "AWS::RDS::EventSubscription"
        • "AWS::S3::Bucket"
        • "AWS::S3::AccountPublicAccessBlock"
        • "AWS::Redshift::Cluster"
        • "AWS::Redshift::ClusterSnapshot"
        • "AWS::Redshift::ClusterParameterGroup"
        • "AWS::Redshift::ClusterSecurityGroup"
        • "AWS::Redshift::ClusterSubnetGroup"
        • "AWS::Redshift::EventSubscription"
        • "AWS::SSM::ManagedInstanceInventory"
        • "AWS::CloudWatch::Alarm"
        • "AWS::CloudFormation::Stack"
        • "AWS::ElasticLoadBalancing::LoadBalancer"
        • "AWS::AutoScaling::AutoScalingGroup"
        • "AWS::AutoScaling::LaunchConfiguration"
        • "AWS::AutoScaling::ScalingPolicy"
        • "AWS::AutoScaling::ScheduledAction"
        • "AWS::DynamoDB::Table"
        • "AWS::CodeBuild::Project"
        • "AWS::WAF::RateBasedRule"
        • "AWS::WAF::Rule"
        • "AWS::WAF::RuleGroup"
        • "AWS::WAF::WebACL"
        • "AWS::WAFRegional::RateBasedRule"
        • "AWS::WAFRegional::Rule"
        • "AWS::WAFRegional::RuleGroup"
        • "AWS::WAFRegional::WebACL"
        • "AWS::CloudFront::Distribution"
        • "AWS::CloudFront::StreamingDistribution"
        • "AWS::Lambda::Alias"
        • "AWS::Lambda::Function"
        • "AWS::ElasticBeanstalk::Application"
        • "AWS::ElasticBeanstalk::ApplicationVersion"
        • "AWS::ElasticBeanstalk::Environment"
        • "AWS::MobileHub::Project"
        • "AWS::XRay::EncryptionConfig"
        • "AWS::SSM::AssociationCompliance"
        • "AWS::SSM::PatchCompliance"
        • "AWS::Shield::Protection"
        • "AWS::ShieldRegional::Protection"
        • "AWS::Config::ResourceCompliance"
        • "AWS::LicenseManager::LicenseConfiguration"
        • "AWS::ApiGateway::DomainName"
        • "AWS::ApiGateway::Method"
        • "AWS::ApiGateway::Stage"
        • "AWS::ApiGateway::RestApi"
        • "AWS::ApiGatewayV2::DomainName"
        • "AWS::ApiGatewayV2::Stage"
        • "AWS::ApiGatewayV2::Api"
        • "AWS::CodePipeline::Pipeline"
        • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
        • "AWS::ServiceCatalog::CloudFormationProduct"
        • "AWS::ServiceCatalog::Portfolio"
      • ResourceName — (String)

        The name of the AWS resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • BaseConfigurationItems — (Array<map>)

        A list that contains the current configuration of one or more resources.

        • version — (String)

          The version number of the resource configuration.

        • accountId — (String)

          The 12-digit AWS account ID associated with the resource.

        • configurationItemCaptureTime — (Date)

          The time when the configuration recording was initiated.

        • configurationItemStatus — (String)

          The configuration item status.

          Possible values include:
          • "OK"
          • "ResourceDiscovered"
          • "ResourceNotRecorded"
          • "ResourceDeleted"
          • "ResourceDeletedNotRecorded"
        • configurationStateId — (String)

          An identifier that indicates the ordering of the configuration items of a resource.

        • arn — (String)

          The Amazon Resource Name (ARN) of the resource.

        • resourceType — (String)

          The type of AWS resource.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • resourceId — (String)

          The ID of the resource (for example., sg-xxxxxx).

        • resourceName — (String)

          The custom name of the resource, if available.

        • awsRegion — (String)

          The region where the resource resides.

        • availabilityZone — (String)

          The Availability Zone associated with the resource.

        • resourceCreationTime — (Date)

          The time stamp when the resource was created.

        • configuration — (String)

          The description of the resource configuration.

        • supplementaryConfiguration — (map<String>)

          Configuration attributes that AWS Config returns for certain resource types to supplement the information returned for the configuration parameter.

      • UnprocessedResourceIdentifiers — (Array<map>)

        A list of resource identifiers that were not processed with current scope. The list is empty if all the resources are processed.

        • SourceAccountIdrequired — (String)

          The 12-digit account ID of the source account.

        • SourceRegionrequired — (String)

          The source region where data is aggregated.

        • ResourceIdrequired — (String)

          The ID of the AWS resource.

        • ResourceTyperequired — (String)

          The type of the AWS resource.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • ResourceName — (String)

          The name of the AWS resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchGetResourceConfig(params = {}, callback) ⇒ AWS.Request

Returns the current configuration for one or more requested resources. The operation also returns a list of resources that are not processed in the current request. If there are no unprocessed resources, the operation returns an empty unprocessedResourceKeys list.

Note:
  • The API does not return results for deleted resources.
  • The API does not return any tags for the requested resources. This information is filtered out of the supplementaryConfiguration section of the API response.

Service Reference:

Examples:

Calling the batchGetResourceConfig operation

var params = {
  resourceKeys: [ /* required */
    {
      resourceId: 'STRING_VALUE', /* required */
      resourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio /* required */
    },
    /* more items */
  ]
};
configservice.batchGetResourceConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceKeys — (Array<map>)

      A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.

      • resourceTyperequired — (String)

        The resource type.

        Possible values include:
        • "AWS::EC2::CustomerGateway"
        • "AWS::EC2::EIP"
        • "AWS::EC2::Host"
        • "AWS::EC2::Instance"
        • "AWS::EC2::InternetGateway"
        • "AWS::EC2::NetworkAcl"
        • "AWS::EC2::NetworkInterface"
        • "AWS::EC2::RouteTable"
        • "AWS::EC2::SecurityGroup"
        • "AWS::EC2::Subnet"
        • "AWS::CloudTrail::Trail"
        • "AWS::EC2::Volume"
        • "AWS::EC2::VPC"
        • "AWS::EC2::VPNConnection"
        • "AWS::EC2::VPNGateway"
        • "AWS::EC2::RegisteredHAInstance"
        • "AWS::EC2::NatGateway"
        • "AWS::EC2::EgressOnlyInternetGateway"
        • "AWS::EC2::VPCEndpoint"
        • "AWS::EC2::VPCEndpointService"
        • "AWS::EC2::FlowLog"
        • "AWS::EC2::VPCPeeringConnection"
        • "AWS::IAM::Group"
        • "AWS::IAM::Policy"
        • "AWS::IAM::Role"
        • "AWS::IAM::User"
        • "AWS::ElasticLoadBalancingV2::LoadBalancer"
        • "AWS::ACM::Certificate"
        • "AWS::RDS::DBInstance"
        • "AWS::RDS::DBParameterGroup"
        • "AWS::RDS::DBOptionGroup"
        • "AWS::RDS::DBSubnetGroup"
        • "AWS::RDS::DBSecurityGroup"
        • "AWS::RDS::DBSnapshot"
        • "AWS::RDS::DBCluster"
        • "AWS::RDS::DBClusterParameterGroup"
        • "AWS::RDS::DBClusterSnapshot"
        • "AWS::RDS::EventSubscription"
        • "AWS::S3::Bucket"
        • "AWS::S3::AccountPublicAccessBlock"
        • "AWS::Redshift::Cluster"
        • "AWS::Redshift::ClusterSnapshot"
        • "AWS::Redshift::ClusterParameterGroup"
        • "AWS::Redshift::ClusterSecurityGroup"
        • "AWS::Redshift::ClusterSubnetGroup"
        • "AWS::Redshift::EventSubscription"
        • "AWS::SSM::ManagedInstanceInventory"
        • "AWS::CloudWatch::Alarm"
        • "AWS::CloudFormation::Stack"
        • "AWS::ElasticLoadBalancing::LoadBalancer"
        • "AWS::AutoScaling::AutoScalingGroup"
        • "AWS::AutoScaling::LaunchConfiguration"
        • "AWS::AutoScaling::ScalingPolicy"
        • "AWS::AutoScaling::ScheduledAction"
        • "AWS::DynamoDB::Table"
        • "AWS::CodeBuild::Project"
        • "AWS::WAF::RateBasedRule"
        • "AWS::WAF::Rule"
        • "AWS::WAF::RuleGroup"
        • "AWS::WAF::WebACL"
        • "AWS::WAFRegional::RateBasedRule"
        • "AWS::WAFRegional::Rule"
        • "AWS::WAFRegional::RuleGroup"
        • "AWS::WAFRegional::WebACL"
        • "AWS::CloudFront::Distribution"
        • "AWS::CloudFront::StreamingDistribution"
        • "AWS::Lambda::Alias"
        • "AWS::Lambda::Function"
        • "AWS::ElasticBeanstalk::Application"
        • "AWS::ElasticBeanstalk::ApplicationVersion"
        • "AWS::ElasticBeanstalk::Environment"
        • "AWS::MobileHub::Project"
        • "AWS::XRay::EncryptionConfig"
        • "AWS::SSM::AssociationCompliance"
        • "AWS::SSM::PatchCompliance"
        • "AWS::Shield::Protection"
        • "AWS::ShieldRegional::Protection"
        • "AWS::Config::ResourceCompliance"
        • "AWS::LicenseManager::LicenseConfiguration"
        • "AWS::ApiGateway::DomainName"
        • "AWS::ApiGateway::Method"
        • "AWS::ApiGateway::Stage"
        • "AWS::ApiGateway::RestApi"
        • "AWS::ApiGatewayV2::DomainName"
        • "AWS::ApiGatewayV2::Stage"
        • "AWS::ApiGatewayV2::Api"
        • "AWS::CodePipeline::Pipeline"
        • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
        • "AWS::ServiceCatalog::CloudFormationProduct"
        • "AWS::ServiceCatalog::Portfolio"
      • resourceIdrequired — (String)

        The ID of the resource (for example., sg-xxxxxx).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • baseConfigurationItems — (Array<map>)

        A list that contains the current configuration of one or more resources.

        • version — (String)

          The version number of the resource configuration.

        • accountId — (String)

          The 12-digit AWS account ID associated with the resource.

        • configurationItemCaptureTime — (Date)

          The time when the configuration recording was initiated.

        • configurationItemStatus — (String)

          The configuration item status.

          Possible values include:
          • "OK"
          • "ResourceDiscovered"
          • "ResourceNotRecorded"
          • "ResourceDeleted"
          • "ResourceDeletedNotRecorded"
        • configurationStateId — (String)

          An identifier that indicates the ordering of the configuration items of a resource.

        • arn — (String)

          The Amazon Resource Name (ARN) of the resource.

        • resourceType — (String)

          The type of AWS resource.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • resourceId — (String)

          The ID of the resource (for example., sg-xxxxxx).

        • resourceName — (String)

          The custom name of the resource, if available.

        • awsRegion — (String)

          The region where the resource resides.

        • availabilityZone — (String)

          The Availability Zone associated with the resource.

        • resourceCreationTime — (Date)

          The time stamp when the resource was created.

        • configuration — (String)

          The description of the resource configuration.

        • supplementaryConfiguration — (map<String>)

          Configuration attributes that AWS Config returns for certain resource types to supplement the information returned for the configuration parameter.

      • unprocessedResourceKeys — (Array<map>)

        A list of resource keys that were not processed with the current response. The unprocessesResourceKeys value is in the same form as ResourceKeys, so the value can be directly provided to a subsequent BatchGetResourceConfig operation. If there are no unprocessed resource keys, the response contains an empty unprocessedResourceKeys list.

        • resourceTyperequired — (String)

          The resource type.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • resourceIdrequired — (String)

          The ID of the resource (for example., sg-xxxxxx).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAggregationAuthorization(params = {}, callback) ⇒ AWS.Request

Deletes the authorization granted to the specified configuration aggregator account in a specified region.

Service Reference:

Examples:

Calling the deleteAggregationAuthorization operation

var params = {
  AuthorizedAccountId: 'STRING_VALUE', /* required */
  AuthorizedAwsRegion: 'STRING_VALUE' /* required */
};
configservice.deleteAggregationAuthorization(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AuthorizedAccountId — (String)

      The 12-digit account ID of the account authorized to aggregate data.

    • AuthorizedAwsRegion — (String)

      The region authorized to collect aggregated data.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConfigRule(params = {}, callback) ⇒ AWS.Request

Deletes the specified AWS Config rule and all of its evaluation results.

AWS Config sets the state of a rule to DELETING until the deletion is complete. You cannot update a rule while it is in this state. If you make a PutConfigRule or DeleteConfigRule request for the rule, you will receive a ResourceInUseException.

You can check the state of a rule by using the DescribeConfigRules request.

Service Reference:

Examples:

Calling the deleteConfigRule operation

var params = {
  ConfigRuleName: 'STRING_VALUE' /* required */
};
configservice.deleteConfigRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The name of the AWS Config rule that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConfigurationAggregator(params = {}, callback) ⇒ AWS.Request

Deletes the specified configuration aggregator and the aggregated data associated with the aggregator.

Service Reference:

Examples:

Calling the deleteConfigurationAggregator operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE' /* required */
};
configservice.deleteConfigurationAggregator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConfigurationRecorder(params = {}, callback) ⇒ AWS.Request

Deletes the configuration recorder.

After the configuration recorder is deleted, AWS Config will not record resource configuration changes until you create a new configuration recorder.

This action does not delete the configuration information that was previously recorded. You will be able to access the previously recorded information by using the GetResourceConfigHistory action, but you will not be able to access this information in the AWS Config console until you create a new configuration recorder.

Service Reference:

Examples:

Calling the deleteConfigurationRecorder operation

var params = {
  ConfigurationRecorderName: 'STRING_VALUE' /* required */
};
configservice.deleteConfigurationRecorder(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationRecorderName — (String)

      The name of the configuration recorder to be deleted. You can retrieve the name of your configuration recorder by using the DescribeConfigurationRecorders action.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConformancePack(params = {}, callback) ⇒ AWS.Request

Deletes the specified conformance pack and all the AWS Config rules, remediation actions, and all evaluation results within that conformance pack.

AWS Config sets the conformance pack to DELETE_IN_PROGRESS until the deletion is complete. You cannot update a conformance pack while it is in this state.

Service Reference:

Examples:

Calling the deleteConformancePack operation

var params = {
  ConformancePackName: 'STRING_VALUE' /* required */
};
configservice.deleteConformancePack(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConformancePackName — (String)

      Name of the conformance pack you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDeliveryChannel(params = {}, callback) ⇒ AWS.Request

Deletes the delivery channel.

Before you can delete the delivery channel, you must stop the configuration recorder by using the StopConfigurationRecorder action.

Service Reference:

Examples:

Calling the deleteDeliveryChannel operation

var params = {
  DeliveryChannelName: 'STRING_VALUE' /* required */
};
configservice.deleteDeliveryChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DeliveryChannelName — (String)

      The name of the delivery channel to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEvaluationResults(params = {}, callback) ⇒ AWS.Request

Deletes the evaluation results for the specified AWS Config rule. You can specify one AWS Config rule per request. After you delete the evaluation results, you can call the StartConfigRulesEvaluation API to start evaluating your AWS resources against the rule.

Service Reference:

Examples:

Calling the deleteEvaluationResults operation

var params = {
  ConfigRuleName: 'STRING_VALUE' /* required */
};
configservice.deleteEvaluationResults(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The name of the AWS Config rule for which you want to delete the evaluation results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteOrganizationConfigRule(params = {}, callback) ⇒ AWS.Request

Deletes the specified organization config rule and all of its evaluation results from all member accounts in that organization. Only a master account can delete an organization config rule.

AWS Config sets the state of a rule to DELETE_IN_PROGRESS until the deletion is complete. You cannot update a rule while it is in this state.

Service Reference:

Examples:

Calling the deleteOrganizationConfigRule operation

var params = {
  OrganizationConfigRuleName: 'STRING_VALUE' /* required */
};
configservice.deleteOrganizationConfigRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConfigRuleName — (String)

      The name of organization config rule that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteOrganizationConformancePack(params = {}, callback) ⇒ AWS.Request

Deletes the specified organization conformance pack and all of the config rules and remediation actions from all member accounts in that organization. Only a master account can delete an organization conformance pack.

AWS Config sets the state of a conformance pack to DELETE_IN_PROGRESS until the deletion is complete. You cannot update a conformance pack while it is in this state.

Examples:

Calling the deleteOrganizationConformancePack operation

var params = {
  OrganizationConformancePackName: 'STRING_VALUE' /* required */
};
configservice.deleteOrganizationConformancePack(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConformancePackName — (String)

      The name of organization conformance pack that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deletePendingAggregationRequest(params = {}, callback) ⇒ AWS.Request

Deletes pending authorization requests for a specified aggregator account in a specified region.

Service Reference:

Examples:

Calling the deletePendingAggregationRequest operation

var params = {
  RequesterAccountId: 'STRING_VALUE', /* required */
  RequesterAwsRegion: 'STRING_VALUE' /* required */
};
configservice.deletePendingAggregationRequest(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • RequesterAccountId — (String)

      The 12-digit account ID of the account requesting to aggregate data.

    • RequesterAwsRegion — (String)

      The region requesting to aggregate data.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteRemediationConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes the remediation configuration.

Service Reference:

Examples:

Calling the deleteRemediationConfiguration operation

var params = {
  ConfigRuleName: 'STRING_VALUE', /* required */
  ResourceType: 'STRING_VALUE'
};
configservice.deleteRemediationConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The name of the AWS Config rule for which you want to delete remediation configuration.

    • ResourceType — (String)

      The type of a resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteRemediationExceptions(params = {}, callback) ⇒ AWS.Request

Deletes one or more remediation exceptions mentioned in the resource keys.

Service Reference:

Examples:

Calling the deleteRemediationExceptions operation

var params = {
  ConfigRuleName: 'STRING_VALUE', /* required */
  ResourceKeys: [ /* required */
    {
      ResourceId: 'STRING_VALUE',
      ResourceType: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.deleteRemediationExceptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The name of the AWS Config rule for which you want to delete remediation exception configuration.

    • ResourceKeys — (Array<map>)

      An exception list of resource exception keys to be processed with the current request. AWS Config adds exception for each resource key. For example, AWS Config adds 3 exceptions for 3 resource keys.

      • ResourceType — (String)

        The type of a resource.

      • ResourceId — (String)

        The ID of the resource (for example., sg-xxxxxx).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedBatches — (Array<map>)

        Returns a list of failed delete remediation exceptions batch objects. Each object in the batch consists of a list of failed items and failure messages.

        • FailureMessage — (String)

          Returns a failure message for delete remediation exception. For example, AWS Config creates an exception due to an internal error.

        • FailedItems — (Array<map>)

          Returns remediation exception resource key object of the failed items.

          • ResourceType — (String)

            The type of a resource.

          • ResourceId — (String)

            The ID of the resource (for example., sg-xxxxxx).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteResourceConfig(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the deleteResourceConfig operation

var params = {
  ResourceId: 'STRING_VALUE', /* required */
  ResourceType: 'STRING_VALUE' /* required */
};
configservice.deleteResourceConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceType — (String)

      The type of the resource.

    • ResourceId — (String)

      Unique identifier of the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteRetentionConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes the retention configuration.

Service Reference:

Examples:

Calling the deleteRetentionConfiguration operation

var params = {
  RetentionConfigurationName: 'STRING_VALUE' /* required */
};
configservice.deleteRetentionConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • RetentionConfigurationName — (String)

      The name of the retention configuration to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deliverConfigSnapshot(params = {}, callback) ⇒ AWS.Request

Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends the following notifications using an Amazon SNS topic that you have specified.

  • Notification of the start of the delivery.

  • Notification of the completion of the delivery, if the delivery was successfully completed.

  • Notification of delivery failure, if the delivery failed.

Service Reference:

Examples:

Calling the deliverConfigSnapshot operation

var params = {
  deliveryChannelName: 'STRING_VALUE' /* required */
};
configservice.deliverConfigSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • deliveryChannelName — (String)

      The name of the delivery channel through which the snapshot is delivered.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • configSnapshotId — (String)

        The ID of the snapshot that is being created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAggregateComplianceByConfigRules(params = {}, callback) ⇒ AWS.Request

Returns a list of compliant and noncompliant rules with the number of resources for compliant and noncompliant rules.

Note: The results can return an empty result page, but if you have a nextToken, the results are displayed on the next page.

Examples:

Calling the describeAggregateComplianceByConfigRules operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  Filters: {
    AccountId: 'STRING_VALUE',
    AwsRegion: 'STRING_VALUE',
    ComplianceType: COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA,
    ConfigRuleName: 'STRING_VALUE'
  },
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describeAggregateComplianceByConfigRules(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • Filters — (map)

      Filters the results by ConfigRuleComplianceFilters object.

      • ConfigRuleName — (String)

        The name of the AWS Config rule.

      • ComplianceType — (String)

        The rule compliance status.

        For the ConfigRuleComplianceFilters data type, AWS Config supports only COMPLIANT and NON_COMPLIANT. AWS Config does not support the NOT_APPLICABLE and the INSUFFICIENT_DATA values.

        Possible values include:
        • "COMPLIANT"
        • "NON_COMPLIANT"
        • "NOT_APPLICABLE"
        • "INSUFFICIENT_DATA"
      • AccountId — (String)

        The 12-digit account ID of the source account.

      • AwsRegion — (String)

        The source region where the data is aggregated.

    • Limit — (Integer)

      The maximum number of evaluation results returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AggregateComplianceByConfigRules — (Array<map>)

        Returns a list of AggregateComplianceByConfigRule object.

        • ConfigRuleName — (String)

          The name of the AWS Config rule.

        • Compliance — (map)

          Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.

          • ComplianceType — (String)

            Indicates whether an AWS resource or AWS Config rule is compliant.

            A resource is compliant if it complies with all of the AWS Config rules that evaluate it. A resource is noncompliant if it does not comply with one or more of these rules.

            A rule is compliant if all of the resources that the rule evaluates comply with it. A rule is noncompliant if any of these resources do not comply.

            AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or AWS Config rule.

            For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

            Possible values include:
            • "COMPLIANT"
            • "NON_COMPLIANT"
            • "NOT_APPLICABLE"
            • "INSUFFICIENT_DATA"
          • ComplianceContributorCount — (map)

            The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.

            • CappedCount — (Integer)

              The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

            • CapExceeded — (Boolean)

              Indicates whether the maximum count is reached.

        • AccountId — (String)

          The 12-digit account ID of the source account.

        • AwsRegion — (String)

          The source region from where the data is aggregated.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAggregationAuthorizations(params = {}, callback) ⇒ AWS.Request

Returns a list of authorizations granted to various aggregator accounts and regions.

Examples:

Calling the describeAggregationAuthorizations operation

var params = {
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describeAggregationAuthorizations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Limit — (Integer)

      The maximum number of AggregationAuthorizations returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AggregationAuthorizations — (Array<map>)

        Returns a list of authorizations granted to various aggregator accounts and regions.

        • AggregationAuthorizationArn — (String)

          The Amazon Resource Name (ARN) of the aggregation object.

        • AuthorizedAccountId — (String)

          The 12-digit account ID of the account authorized to aggregate data.

        • AuthorizedAwsRegion — (String)

          The region authorized to collect aggregated data.

        • CreationTime — (Date)

          The time stamp when the aggregation authorization was created.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeComplianceByConfigRule(params = {}, callback) ⇒ AWS.Request

Indicates whether the specified AWS Config rules are compliant. If a rule is noncompliant, this action returns the number of AWS resources that do not comply with the rule.

A rule is compliant if all of the evaluated resources comply with it. It is noncompliant if any of these resources do not comply.

If AWS Config has no current evaluation results for the rule, it returns INSUFFICIENT_DATA. This result might indicate one of the following conditions:

  • AWS Config has never invoked an evaluation for the rule. To check whether it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime and LastFailedInvocationTime.

  • The rule's AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role you assigned to your configuration recorder includes the config:PutEvaluations permission. If the rule is a custom rule, verify that the AWS Lambda execution role includes the config:PutEvaluations permission.

  • The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation results. This can occur if the resources were deleted or removed from the rule's scope.

Service Reference:

Examples:

Calling the describeComplianceByConfigRule operation

var params = {
  ComplianceTypes: [
    COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA,
    /* more items */
  ],
  ConfigRuleNames: [
    'STRING_VALUE',
    /* more items */
  ],
  NextToken: 'STRING_VALUE'
};
configservice.describeComplianceByConfigRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleNames — (Array<String>)

      Specify one or more AWS Config rule names to filter the results by rule.

    • ComplianceTypes — (Array<String>)

      Filters the results by compliance.

      The allowed values are COMPLIANT and NON_COMPLIANT.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ComplianceByConfigRules — (Array<map>)

        Indicates whether each of the specified AWS Config rules is compliant.

        • ConfigRuleName — (String)

          The name of the AWS Config rule.

        • Compliance — (map)

          Indicates whether the AWS Config rule is compliant.

          • ComplianceType — (String)

            Indicates whether an AWS resource or AWS Config rule is compliant.

            A resource is compliant if it complies with all of the AWS Config rules that evaluate it. A resource is noncompliant if it does not comply with one or more of these rules.

            A rule is compliant if all of the resources that the rule evaluates comply with it. A rule is noncompliant if any of these resources do not comply.

            AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or AWS Config rule.

            For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

            Possible values include:
            • "COMPLIANT"
            • "NON_COMPLIANT"
            • "NOT_APPLICABLE"
            • "INSUFFICIENT_DATA"
          • ComplianceContributorCount — (map)

            The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.

            • CappedCount — (Integer)

              The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

            • CapExceeded — (Boolean)

              Indicates whether the maximum count is reached.

      • NextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeComplianceByResource(params = {}, callback) ⇒ AWS.Request

Indicates whether the specified AWS resources are compliant. If a resource is noncompliant, this action returns the number of AWS Config rules that the resource does not comply with.

A resource is compliant if it complies with all the AWS Config rules that evaluate it. It is noncompliant if it does not comply with one or more of these rules.

If AWS Config has no current evaluation results for the resource, it returns INSUFFICIENT_DATA. This result might indicate one of the following conditions about the rules that evaluate the resource:

  • AWS Config has never invoked an evaluation for the rule. To check whether it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime and LastFailedInvocationTime.

  • The rule's AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role that you assigned to your configuration recorder includes the config:PutEvaluations permission. If the rule is a custom rule, verify that the AWS Lambda execution role includes the config:PutEvaluations permission.

  • The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation results. This can occur if the resources were deleted or removed from the rule's scope.

Service Reference:

Examples:

Calling the describeComplianceByResource operation

var params = {
  ComplianceTypes: [
    COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA,
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  ResourceId: 'STRING_VALUE',
  ResourceType: 'STRING_VALUE'
};
configservice.describeComplianceByResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceType — (String)

      The types of AWS resources for which you want compliance information (for example, AWS::EC2::Instance). For this action, you can specify that the resource type is an AWS account by specifying AWS::::Account.

    • ResourceId — (String)

      The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type for ResourceType.

    • ComplianceTypes — (Array<String>)

      Filters the results by compliance.

      The allowed values are COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA.

    • Limit — (Integer)

      The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ComplianceByResources — (Array<map>)

        Indicates whether the specified AWS resource complies with all of the AWS Config rules that evaluate it.

        • ResourceType — (String)

          The type of the AWS resource that was evaluated.

        • ResourceId — (String)

          The ID of the AWS resource that was evaluated.

        • Compliance — (map)

          Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.

          • ComplianceType — (String)

            Indicates whether an AWS resource or AWS Config rule is compliant.

            A resource is compliant if it complies with all of the AWS Config rules that evaluate it. A resource is noncompliant if it does not comply with one or more of these rules.

            A rule is compliant if all of the resources that the rule evaluates comply with it. A rule is noncompliant if any of these resources do not comply.

            AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or AWS Config rule.

            For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

            Possible values include:
            • "COMPLIANT"
            • "NON_COMPLIANT"
            • "NOT_APPLICABLE"
            • "INSUFFICIENT_DATA"
          • ComplianceContributorCount — (map)

            The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.

            • CappedCount — (Integer)

              The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

            • CapExceeded — (Boolean)

              Indicates whether the maximum count is reached.

      • NextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConfigRuleEvaluationStatus(params = {}, callback) ⇒ AWS.Request

Returns status information for each of your AWS managed Config rules. The status includes information such as the last time AWS Config invoked the rule, the last time AWS Config failed to invoke the rule, and the related error for the last failure.

Examples:

Calling the describeConfigRuleEvaluationStatus operation

var params = {
  ConfigRuleNames: [
    'STRING_VALUE',
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describeConfigRuleEvaluationStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleNames — (Array<String>)

      The name of the AWS managed Config rules for which you want status information. If you do not specify any names, AWS Config returns status information for all AWS managed Config rules that you use.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    • Limit — (Integer)

      The number of rule evaluation results that you want returned.

      This parameter is required if the rule limit for your account is more than the default of 150 rules.

      For information about requesting a rule limit increase, see AWS Config Limits in the AWS General Reference Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigRulesEvaluationStatus — (Array<map>)

        Status information about your AWS managed Config rules.

        • ConfigRuleName — (String)

          The name of the AWS Config rule.

        • ConfigRuleArn — (String)

          The Amazon Resource Name (ARN) of the AWS Config rule.

        • ConfigRuleId — (String)

          The ID of the AWS Config rule.

        • LastSuccessfulInvocationTime — (Date)

          The time that AWS Config last successfully invoked the AWS Config rule to evaluate your AWS resources.

        • LastFailedInvocationTime — (Date)

          The time that AWS Config last failed to invoke the AWS Config rule to evaluate your AWS resources.

        • LastSuccessfulEvaluationTime — (Date)

          The time that AWS Config last successfully evaluated your AWS resources against the rule.

        • LastFailedEvaluationTime — (Date)

          The time that AWS Config last failed to evaluate your AWS resources against the rule.

        • FirstActivatedTime — (Date)

          The time that you first activated the AWS Config rule.

        • LastErrorCode — (String)

          The error code that AWS Config returned when the rule last failed.

        • LastErrorMessage — (String)

          The error message that AWS Config returned when the rule last failed.

        • FirstEvaluationStarted — (Boolean)

          Indicates whether AWS Config has evaluated your resources against the rule at least once.

          • true - AWS Config has evaluated your AWS resources against the rule at least once.

          • false - AWS Config has not once finished evaluating your AWS resources against the rule.

      • NextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConfigRules(params = {}, callback) ⇒ AWS.Request

Returns details about your AWS Config rules.

Service Reference:

Examples:

Calling the describeConfigRules operation

var params = {
  ConfigRuleNames: [
    'STRING_VALUE',
    /* more items */
  ],
  NextToken: 'STRING_VALUE'
};
configservice.describeConfigRules(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleNames — (Array<String>)

      The names of the AWS Config rules for which you want details. If you do not specify any names, AWS Config returns details for all your rules.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigRules — (Array<map>)

        The details about your AWS Config rules.

        • ConfigRuleName — (String)

          The name that you assign to the AWS Config rule. The name is required if you are adding a new rule.

        • ConfigRuleArn — (String)

          The Amazon Resource Name (ARN) of the AWS Config rule.

        • ConfigRuleId — (String)

          The ID of the AWS Config rule.

        • Description — (String)

          The description that you provide for the AWS Config rule.

        • Scope — (map)

          Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.

          • ComplianceResourceTypes — (Array<String>)

            The resource types of only those AWS resources that you want to trigger an evaluation for the rule. You can only specify one type if you also specify a resource ID for ComplianceResourceId.

          • TagKey — (String)

            The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.

          • TagValue — (String)

            The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you specify a value for TagValue, you must also specify a value for TagKey.

          • ComplianceResourceId — (String)

            The ID of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for ComplianceResourceTypes.

        • Sourcerequired — (map)

          Provides the rule owner (AWS or customer), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.

          • Ownerrequired — (String)

            Indicates whether AWS or the customer owns and manages the AWS Config rule.

            Possible values include:
            • "CUSTOM_LAMBDA"
            • "AWS"
          • SourceIdentifierrequired — (String)

            For AWS Config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.

            For custom rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function, such as arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name.

          • SourceDetails — (Array<map>)

            Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.

            • EventSource — (String)

              The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWS resources.

              Possible values include:
              • "aws.config"
            • MessageType — (String)

              The type of notification that triggers AWS Config to run an evaluation for a rule. You can specify the following notification types:

              • ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.

              • OversizedConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.

              • ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency.

              • ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.

              If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects, one for ConfigurationItemChangeNotification and one for OversizedConfigurationItemChangeNotification.

              Possible values include:
              • "ConfigurationItemChangeNotification"
              • "ConfigurationSnapshotDeliveryCompleted"
              • "ScheduledNotification"
              • "OversizedConfigurationItemChangeNotification"
            • MaximumExecutionFrequency — (String)

              The frequency at which you want AWS Config to run evaluations for a custom rule with a periodic trigger. If you specify a value for MaximumExecutionFrequency, then MessageType must use the ScheduledNotification value.

              Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter. Based on the valid value you choose, AWS Config runs evaluations once for each valid value. For example, if you choose Three_Hours, AWS Config runs evaluations once every three hours. In this case, Three_Hours is the frequency of this rule.
              Possible values include:
              • "One_Hour"
              • "Three_Hours"
              • "Six_Hours"
              • "Twelve_Hours"
              • "TwentyFour_Hours"
        • InputParameters — (String)

          A string, in JSON format, that is passed to the AWS Config rule Lambda function.

        • MaximumExecutionFrequency — (String)

          The maximum frequency with which AWS Config runs evaluations for a rule. You can specify a value for MaximumExecutionFrequency when:

          • You are using an AWS managed rule that is triggered at a periodic frequency.

          • Your custom rule is triggered when AWS Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.

          Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
          Possible values include:
          • "One_Hour"
          • "Three_Hours"
          • "Six_Hours"
          • "Twelve_Hours"
          • "TwentyFour_Hours"
        • ConfigRuleState — (String)

          Indicates whether the AWS Config rule is active or is currently being deleted by AWS Config. It can also indicate the evaluation status for the AWS Config rule.

          AWS Config sets the state of the rule to EVALUATING temporarily after you use the StartConfigRulesEvaluation request to evaluate your resources against the AWS Config rule.

          AWS Config sets the state of the rule to DELETING_RESULTS temporarily after you use the DeleteEvaluationResults request to delete the current evaluation results for the AWS Config rule.

          AWS Config temporarily sets the state of a rule to DELETING after you use the DeleteConfigRule request to delete the rule. After AWS Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.

          Possible values include:
          • "ACTIVE"
          • "DELETING"
          • "DELETING_RESULTS"
          • "EVALUATING"
        • CreatedBy — (String)

          Service principal name of the service that created the rule.

          Note: The field is populated only if the service linked rule is created by a service. The field is empty if you create your own rule.
      • NextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConfigurationAggregators(params = {}, callback) ⇒ AWS.Request

Returns the details of one or more configuration aggregators. If the configuration aggregator is not specified, this action returns the details for all the configuration aggregators associated with the account.

Examples:

Calling the describeConfigurationAggregators operation

var params = {
  ConfigurationAggregatorNames: [
    'STRING_VALUE',
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describeConfigurationAggregators(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorNames — (Array<String>)

      The name of the configuration aggregators.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    • Limit — (Integer)

      The maximum number of configuration aggregators returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigurationAggregators — (Array<map>)

        Returns a ConfigurationAggregators object.

        • ConfigurationAggregatorName — (String)

          The name of the aggregator.

        • ConfigurationAggregatorArn — (String)

          The Amazon Resource Name (ARN) of the aggregator.

        • AccountAggregationSources — (Array<map>)

          Provides a list of source accounts and regions to be aggregated.

          • AccountIdsrequired — (Array<String>)

            The 12-digit account ID of the account being aggregated.

          • AllAwsRegions — (Boolean)

            If true, aggregate existing AWS Config regions and future regions.

          • AwsRegions — (Array<String>)

            The source regions being aggregated.

        • OrganizationAggregationSource — (map)

          Provides an organization and list of regions to be aggregated.

          • RoleArnrequired — (String)

            ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

          • AwsRegions — (Array<String>)

            The source regions being aggregated.

          • AllAwsRegions — (Boolean)

            If true, aggregate existing AWS Config regions and future regions.

        • CreationTime — (Date)

          The time stamp when the configuration aggregator was created.

        • LastUpdatedTime — (Date)

          The time of the last update.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConfigurationAggregatorSourcesStatus(params = {}, callback) ⇒ AWS.Request

Returns status information for sources within an aggregator. The status includes information about the last time AWS Config verified authorization between the source account and an aggregator account. In case of a failure, the status contains the related error code or message.

Examples:

Calling the describeConfigurationAggregatorSourcesStatus operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  UpdateStatus: [
    FAILED | SUCCEEDED | OUTDATED,
    /* more items */
  ]
};
configservice.describeConfigurationAggregatorSourcesStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • UpdateStatus — (Array<String>)

      Filters the status type.

      • Valid value FAILED indicates errors while moving data.

      • Valid value SUCCEEDED indicates the data was successfully moved.

      • Valid value OUTDATED indicates the data is not the most recent.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    • Limit — (Integer)

      The maximum number of AggregatorSourceStatus returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AggregatedSourceStatusList — (Array<map>)

        Returns an AggregatedSourceStatus object.

        • SourceId — (String)

          The source account ID or an organization.

        • SourceType — (String)

          The source account or an organization.

          Possible values include:
          • "ACCOUNT"
          • "ORGANIZATION"
        • AwsRegion — (String)

          The region authorized to collect aggregated data.

        • LastUpdateStatus — (String)

          Filters the last updated status type.

          • Valid value FAILED indicates errors while moving data.

          • Valid value SUCCEEDED indicates the data was successfully moved.

          • Valid value OUTDATED indicates the data is not the most recent.

          Possible values include:
          • "FAILED"
          • "SUCCEEDED"
          • "OUTDATED"
        • LastUpdateTime — (Date)

          The time of the last update.

        • LastErrorCode — (String)

          The error code that AWS Config returned when the source account aggregation last failed.

        • LastErrorMessage — (String)

          The message indicating that the source account aggregation failed due to an error.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConfigurationRecorders(params = {}, callback) ⇒ AWS.Request

Returns the details for the specified configuration recorders. If the configuration recorder is not specified, this action returns the details for all configuration recorders associated with the account.

Note: Currently, you can specify only one configuration recorder per region in your account.

Service Reference:

Examples:

Calling the describeConfigurationRecorders operation

var params = {
  ConfigurationRecorderNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeConfigurationRecorders(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationRecorderNames — (Array<String>)

      A list of configuration recorder names.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigurationRecorders — (Array<map>)

        A list that contains the descriptions of the specified configuration recorders.

        • name — (String)

          The name of the recorder. By default, AWS Config automatically assigns the name "default" when creating the configuration recorder. You cannot change the assigned name.

        • roleARN — (String)

          Amazon Resource Name (ARN) of the IAM role used to describe the AWS resources associated with the account.

        • recordingGroup — (map)

          Specifies the types of AWS resources for which AWS Config records configuration changes.

          • allSupported — (Boolean)

            Specifies whether AWS Config records configuration changes for every supported type of regional resource.

            If you set this option to true, when AWS Config adds support for a new type of regional resource, it starts recording resources of that type automatically.

            If you set this option to true, you cannot enumerate a list of resourceTypes.

          • includeGlobalResourceTypes — (Boolean)

            Specifies whether AWS Config includes all supported types of global resources (for example, IAM resources) with the resources that it records.

            Before you can set this option to true, you must set the allSupported option to true.

            If you set this option to true, when AWS Config adds support for a new type of global resource, it starts recording resources of that type automatically.

            The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing AWS Config in only one region to record global resources.

          • resourceTypes — (Array<String>)

            A comma-separated list that specifies the types of AWS resources for which AWS Config records configuration changes (for example, AWS::EC2::Instance or AWS::CloudTrail::Trail).

            Before you can set this option to true, you must set the allSupported option to false.

            If you set this option to true, when AWS Config adds support for a new type of resource, it will not record resources of that type unless you manually add that type to your recording group.

            For a list of valid resourceTypes values, see the resourceType Value column in Supported AWS Resource Types.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConfigurationRecorderStatus(params = {}, callback) ⇒ AWS.Request

Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorders associated with the account.

Note: Currently, you can specify only one configuration recorder per region in your account.

Examples:

Calling the describeConfigurationRecorderStatus operation

var params = {
  ConfigurationRecorderNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeConfigurationRecorderStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationRecorderNames — (Array<String>)

      The name(s) of the configuration recorder. If the name is not specified, the action returns the current status of all the configuration recorders associated with the account.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigurationRecordersStatus — (Array<map>)

        A list that contains status of the specified recorders.

        • name — (String)

          The name of the configuration recorder.

        • lastStartTime — (Date)

          The time the recorder was last started.

        • lastStopTime — (Date)

          The time the recorder was last stopped.

        • recording — (Boolean)

          Specifies whether or not the recorder is currently recording.

        • lastStatus — (String)

          The last (previous) status of the recorder.

          Possible values include:
          • "Pending"
          • "Success"
          • "Failure"
        • lastErrorCode — (String)

          The error code indicating that the recording failed.

        • lastErrorMessage — (String)

          The message indicating that the recording failed due to an error.

        • lastStatusChangeTime — (Date)

          The time when the status was last changed.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConformancePackCompliance(params = {}, callback) ⇒ AWS.Request

Returns compliance details for each rule in that conformance pack.

Note: You must provide exact rule names.

Examples:

Calling the describeConformancePackCompliance operation

var params = {
  ConformancePackName: 'STRING_VALUE', /* required */
  Filters: {
    ComplianceType: COMPLIANT | NON_COMPLIANT,
    ConfigRuleNames: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describeConformancePackCompliance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConformancePackName — (String)

      Name of the conformance pack.

    • Filters — (map)

      A ConformancePackComplianceFilters object.

      • ConfigRuleNames — (Array<String>)

        Filters the results by AWS Config rule names.

      • ComplianceType — (String)

        Filters the results by compliance.

        The allowed values are COMPLIANT and NON_COMPLIANT.

        Possible values include:
        • "COMPLIANT"
        • "NON_COMPLIANT"
    • Limit — (Integer)

      The maximum number of AWS Config rules within a conformance pack are returned on each page.

    • NextToken — (String)

      The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConformancePackName — (String)

        Name of the conformance pack.

      • ConformancePackRuleComplianceList — (Array<map>)

        Returns a list of ConformancePackRuleCompliance objects.

        • ConfigRuleName — (String)

          Name of the config rule.

        • ComplianceType — (String)

          Compliance of the AWS Config rule

          The allowed values are COMPLIANT and NON_COMPLIANT.

          Possible values include:
          • "COMPLIANT"
          • "NON_COMPLIANT"
      • NextToken — (String)

        The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConformancePacks(params = {}, callback) ⇒ AWS.Request

Returns a list of one or more conformance packs.

Service Reference:

Examples:

Calling the describeConformancePacks operation

var params = {
  ConformancePackNames: [
    'STRING_VALUE',
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describeConformancePacks(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConformancePackNames — (Array<String>)

      Comma-separated list of conformance pack names for which you want details. If you do not specify any names, AWS Config returns details for all your conformance packs.

    • Limit — (Integer)

      The maximum number of conformance packs returned on each page.

    • NextToken — (String)

      The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConformancePackDetails — (Array<map>)

        Returns a list of ConformancePackDetail objects.

        • ConformancePackNamerequired — (String)

          Name of the conformance pack.

        • ConformancePackArnrequired — (String)

          Amazon Resource Name (ARN) of the conformance pack.

        • ConformancePackIdrequired — (String)

          ID of the conformance pack.

        • DeliveryS3Bucketrequired — (String)

          Conformance pack template that is used to create a pack. The delivery bucket name should start with awsconfigconforms. For example: "Resource": "arn:aws:s3:::your_bucket_name/*".

        • DeliveryS3KeyPrefix — (String)

          The prefix for the Amazon S3 bucket.

        • ConformancePackInputParameters — (Array<map>)

          A list of ConformancePackInputParameter objects.

          • ParameterNamerequired — (String)

            One part of a key-value pair.

          • ParameterValuerequired — (String)

            Another part of the key-value pair.

        • LastUpdateRequestedTime — (Date)

          Last time when conformation pack update was requested.

        • CreatedBy — (String)

          AWS service that created the conformance pack.

      • NextToken — (String)

        The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConformancePackStatus(params = {}, callback) ⇒ AWS.Request

Provides one or more conformance packs deployment status.

Note: If there are no conformance packs then you will see an empty result.

Service Reference:

Examples:

Calling the describeConformancePackStatus operation

var params = {
  ConformancePackNames: [
    'STRING_VALUE',
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describeConformancePackStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConformancePackNames — (Array<String>)

      Comma-separated list of conformance pack names.

    • Limit — (Integer)

      The maximum number of conformance packs status returned on each page.

    • NextToken — (String)

      The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConformancePackStatusDetails — (Array<map>)

        A list of ConformancePackStatusDetail objects.

        • ConformancePackNamerequired — (String)

          Name of the conformance pack.

        • ConformancePackIdrequired — (String)

          ID of the conformance pack.

        • ConformancePackArnrequired — (String)

          Amazon Resource Name (ARN) of comformance pack.

        • ConformancePackStaterequired — (String)

          Indicates deployment status of conformance pack.

          AWS Config sets the state of the conformance pack to:

          • CREATE_IN_PROGRESS when a conformance pack creation is in progress for an account.

          • CREATE_COMPLETE when a conformance pack has been successfully created in your account.

          • CREATE_FAILED when a conformance pack creation failed in your account.

          • DELETE_IN_PROGRESS when a conformance pack deletion is in progress.

          • DELETE_FAILED when a conformance pack deletion failed in your account.

          Possible values include:
          • "CREATE_IN_PROGRESS"
          • "CREATE_COMPLETE"
          • "CREATE_FAILED"
          • "DELETE_IN_PROGRESS"
          • "DELETE_FAILED"
        • StackArnrequired — (String)

          Amazon Resource Name (ARN) of AWS CloudFormation stack.

        • ConformancePackStatusReason — (String)

          The reason of conformance pack creation failure.

        • LastUpdateRequestedTimerequired — (Date)

          Last time when conformation pack creation and update was requested.

        • LastUpdateCompletedTime — (Date)

          Last time when conformation pack creation and update was successful.

      • NextToken — (String)

        The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeDeliveryChannels(params = {}, callback) ⇒ AWS.Request

Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account.

Note: Currently, you can specify only one delivery channel per region in your account.

Service Reference:

Examples:

Calling the describeDeliveryChannels operation

var params = {
  DeliveryChannelNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeDeliveryChannels(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DeliveryChannelNames — (Array<String>)

      A list of delivery channel names.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DeliveryChannels — (Array<map>)

        A list that contains the descriptions of the specified delivery channel.

        • name — (String)

          The name of the delivery channel. By default, AWS Config assigns the name "default" when creating the delivery channel. To change the delivery channel name, you must use the DeleteDeliveryChannel action to delete your current delivery channel, and then you must use the PutDeliveryChannel command to create a delivery channel that has the desired name.

        • s3BucketName — (String)

          The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files.

          If you specify a bucket that belongs to another AWS account, that bucket must have policies that grant access permissions to AWS Config. For more information, see Permissions for the Amazon S3 Bucket in the AWS Config Developer Guide.

        • s3KeyPrefix — (String)

          The prefix for the specified Amazon S3 bucket.

        • snsTopicARN — (String)

          The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.

          If you choose a topic from another account, the topic must have policies that grant access permissions to AWS Config. For more information, see Permissions for the Amazon SNS Topic in the AWS Config Developer Guide.

        • configSnapshotDeliveryProperties — (map)

          The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.

          • deliveryFrequency — (String)

            The frequency with which AWS Config delivers configuration snapshots.

            Possible values include:
            • "One_Hour"
            • "Three_Hours"
            • "Six_Hours"
            • "Twelve_Hours"
            • "TwentyFour_Hours"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeDeliveryChannelStatus(params = {}, callback) ⇒ AWS.Request

Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account.

Note: Currently, you can specify only one delivery channel per region in your account.

Service Reference:

Examples:

Calling the describeDeliveryChannelStatus operation

var params = {
  DeliveryChannelNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeDeliveryChannelStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DeliveryChannelNames — (Array<String>)

      A list of delivery channel names.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DeliveryChannelsStatus — (Array<map>)

        A list that contains the status of a specified delivery channel.

        • name — (String)

          The name of the delivery channel.

        • configSnapshotDeliveryInfo — (map)

          A list containing the status of the delivery of the snapshot to the specified Amazon S3 bucket.

          • lastStatus — (String)

            Status of the last attempted delivery.

            Possible values include:
            • "Success"
            • "Failure"
            • "Not_Applicable"
          • lastErrorCode — (String)

            The error code from the last attempted delivery.

          • lastErrorMessage — (String)

            The error message from the last attempted delivery.

          • lastAttemptTime — (Date)

            The time of the last attempted delivery.

          • lastSuccessfulTime — (Date)

            The time of the last successful delivery.

          • nextDeliveryTime — (Date)

            The time that the next delivery occurs.

        • configHistoryDeliveryInfo — (map)

          A list that contains the status of the delivery of the configuration history to the specified Amazon S3 bucket.

          • lastStatus — (String)

            Status of the last attempted delivery.

            Possible values include:
            • "Success"
            • "Failure"
            • "Not_Applicable"
          • lastErrorCode — (String)

            The error code from the last attempted delivery.

          • lastErrorMessage — (String)

            The error message from the last attempted delivery.

          • lastAttemptTime — (Date)

            The time of the last attempted delivery.

          • lastSuccessfulTime — (Date)

            The time of the last successful delivery.

          • nextDeliveryTime — (Date)

            The time that the next delivery occurs.

        • configStreamDeliveryInfo — (map)

          A list containing the status of the delivery of the configuration stream notification to the specified Amazon SNS topic.

          • lastStatus — (String)

            Status of the last attempted delivery.

            Note Providing an SNS topic on a DeliveryChannel for AWS Config is optional. If the SNS delivery is turned off, the last status will be Not_Applicable.

            Possible values include:
            • "Success"
            • "Failure"
            • "Not_Applicable"
          • lastErrorCode — (String)

            The error code from the last attempted delivery.

          • lastErrorMessage — (String)

            The error message from the last attempted delivery.

          • lastStatusChangeTime — (Date)

            The time from the last status change.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeOrganizationConfigRules(params = {}, callback) ⇒ AWS.Request

Returns a list of organization config rules.

Note: When you specify the limit and the next token, you receive a paginated response. Limit and next token are not applicable if you specify organization config rule names. It is only applicable, when you request all the organization config rules. Only a master account can call this API.

Service Reference:

Examples:

Calling the describeOrganizationConfigRules operation

var params = {
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  OrganizationConfigRuleNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeOrganizationConfigRules(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConfigRuleNames — (Array<String>)

      The names of organization config rules for which you want details. If you do not specify any names, AWS Config returns details for all your organization config rules.

    • Limit — (Integer)

      The maximum number of organization config rules returned on each page. If you do no specify a number, AWS Config uses the default. The default is 100.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConfigRules — (Array<map>)

        Returns a list of OrganizationConfigRule objects.

        • OrganizationConfigRuleNamerequired — (String)

          The name that you assign to organization config rule.

        • OrganizationConfigRuleArnrequired — (String)

          Amazon Resource Name (ARN) of organization config rule.

        • OrganizationManagedRuleMetadata — (map)

          An OrganizationManagedRuleMetadata object.

          • Description — (String)

            The description that you provide for organization config rule.

          • RuleIdentifierrequired — (String)

            For organization config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.

          • InputParameters — (String)

            A string, in JSON format, that is passed to organization config rule Lambda function.

          • MaximumExecutionFrequency — (String)

            The maximum frequency with which AWS Config runs evaluations for a rule. You are using an AWS managed rule that is triggered at a periodic frequency.

            Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
            Possible values include:
            • "One_Hour"
            • "Three_Hours"
            • "Six_Hours"
            • "Twelve_Hours"
            • "TwentyFour_Hours"
          • ResourceTypesScope — (Array<String>)

            The type of the AWS resource that was evaluated.

          • ResourceIdScope — (String)

            The ID of the AWS resource that was evaluated.

          • TagKeyScope — (String)

            One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

          • TagValueScope — (String)

            The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

        • OrganizationCustomRuleMetadata — (map)

          An OrganizationCustomRuleMetadata object.

          • Description — (String)

            The description that you provide for organization config rule.

          • LambdaFunctionArnrequired — (String)

            The lambda function ARN.

          • OrganizationConfigRuleTriggerTypesrequired — (Array<String>)

            The type of notification that triggers AWS Config to run an evaluation for a rule. You can specify the following notification types:

            • ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.

            • OversizedConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.

            • ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency.

          • InputParameters — (String)

            A string, in JSON format, that is passed to organization config rule Lambda function.

          • MaximumExecutionFrequency — (String)

            The maximum frequency with which AWS Config runs evaluations for a rule. Your custom rule is triggered when AWS Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.

            Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
            Possible values include:
            • "One_Hour"
            • "Three_Hours"
            • "Six_Hours"
            • "Twelve_Hours"
            • "TwentyFour_Hours"
          • ResourceTypesScope — (Array<String>)

            The type of the AWS resource that was evaluated.

          • ResourceIdScope — (String)

            The ID of the AWS resource that was evaluated.

          • TagKeyScope — (String)

            One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

          • TagValueScope — (String)

            The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

        • ExcludedAccounts — (Array<String>)

          A comma-separated list of accounts excluded from organization config rule.

        • LastUpdateTime — (Date)

          The timestamp of the last update.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeOrganizationConfigRuleStatuses(params = {}, callback) ⇒ AWS.Request

Provides organization config rule deployment status for an organization.

Note: The status is not considered successful until organization config rule is successfully deployed in all the member accounts with an exception of excluded accounts. When you specify the limit and the next token, you receive a paginated response. Limit and next token are not applicable if you specify organization config rule names. It is only applicable, when you request all the organization config rules. Only a master account can call this API.

Examples:

Calling the describeOrganizationConfigRuleStatuses operation

var params = {
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  OrganizationConfigRuleNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeOrganizationConfigRuleStatuses(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConfigRuleNames — (Array<String>)

      The names of organization config rules for which you want status details. If you do not specify any names, AWS Config returns details for all your organization AWS Confg rules.

    • Limit — (Integer)

      The maximum number of OrganizationConfigRuleStatuses returned on each page. If you do no specify a number, AWS Config uses the default. The default is 100.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConfigRuleStatuses — (Array<map>)

        A list of OrganizationConfigRuleStatus objects.

        • OrganizationConfigRuleNamerequired — (String)

          The name that you assign to organization config rule.

        • OrganizationRuleStatusrequired — (String)

          Indicates deployment status of an organization config rule. When master account calls PutOrganizationConfigRule action for the first time, config rule status is created in all the member accounts. When master account calls PutOrganizationConfigRule action for the second time, config rule status is updated in all the member accounts. Additionally, config rule status is updated when one or more member accounts join or leave an organization. Config rule status is deleted when the master account deletes OrganizationConfigRule in all the member accounts and disables service access for config-multiaccountsetup.amazonaws.com.

          AWS Config sets the state of the rule to:

          • CREATE_SUCCESSFUL when an organization config rule has been successfully created in all the member accounts.

          • CREATE_IN_PROGRESS when an organization config rule creation is in progress.

          • CREATE_FAILED when an organization config rule creation failed in one or more member accounts within that organization.

          • DELETE_FAILED when an organization config rule deletion failed in one or more member accounts within that organization.

          • DELETE_IN_PROGRESS when an organization config rule deletion is in progress.

          • DELETE_SUCCESSFUL when an organization config rule has been successfully deleted from all the member accounts.

          • UPDATE_SUCCESSFUL when an organization config rule has been successfully updated in all the member accounts.

          • UPDATE_IN_PROGRESS when an organization config rule update is in progress.

          • UPDATE_FAILED when an organization config rule update failed in one or more member accounts within that organization.

          Possible values include:
          • "CREATE_SUCCESSFUL"
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "DELETE_SUCCESSFUL"
          • "DELETE_FAILED"
          • "DELETE_IN_PROGRESS"
          • "UPDATE_SUCCESSFUL"
          • "UPDATE_IN_PROGRESS"
          • "UPDATE_FAILED"
        • ErrorCode — (String)

          An error code that is returned when organization config rule creation or deletion has failed.

        • ErrorMessage — (String)

          An error message indicating that organization config rule creation or deletion failed due to an error.

        • LastUpdateTime — (Date)

          The timestamp of the last update.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeOrganizationConformancePacks(params = {}, callback) ⇒ AWS.Request

Returns a list of organization conformance packs.

Note: When you specify the limit and the next token, you receive a paginated response. Limit and next token are not applicable if you specify organization conformance packs names. They are only applicable, when you request all the organization conformance packs. Only a master account can call this API.

Examples:

Calling the describeOrganizationConformancePacks operation

var params = {
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  OrganizationConformancePackNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeOrganizationConformancePacks(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConformancePackNames — (Array<String>)

      The name that you assign to an organization conformance pack.

    • Limit — (Integer)

      The maximum number of organization config packs returned on each page. If you do no specify a number, AWS Config uses the default. The default is 100.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConformancePacks — (Array<map>)

        Returns a list of OrganizationConformancePacks objects.

        • OrganizationConformancePackNamerequired — (String)

          The name you assign to an organization conformance pack.

        • OrganizationConformancePackArnrequired — (String)

          Amazon Resource Name (ARN) of organization conformance pack.

        • DeliveryS3Bucketrequired — (String)

          Location of an Amazon S3 bucket where AWS Config can deliver evaluation results and conformance pack template that is used to create a pack.

        • DeliveryS3KeyPrefix — (String)

          Any folder structure you want to add to an Amazon S3 bucket.

        • ConformancePackInputParameters — (Array<map>)

          A list of ConformancePackInputParameter objects.

          • ParameterNamerequired — (String)

            One part of a key-value pair.

          • ParameterValuerequired — (String)

            Another part of the key-value pair.

        • ExcludedAccounts — (Array<String>)

          A comma-separated list of accounts excluded from organization conformance pack.

        • LastUpdateTimerequired — (Date)

          Last time when organization conformation pack was updated.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeOrganizationConformancePackStatuses(params = {}, callback) ⇒ AWS.Request

Provides organization conformance pack deployment status for an organization.

Note: The status is not considered successful until organization conformance pack is successfully deployed in all the member accounts with an exception of excluded accounts. When you specify the limit and the next token, you receive a paginated response. Limit and next token are not applicable if you specify organization conformance pack names. They are only applicable, when you request all the organization conformance packs. Only a master account can call this API.

Examples:

Calling the describeOrganizationConformancePackStatuses operation

var params = {
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  OrganizationConformancePackNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeOrganizationConformancePackStatuses(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConformancePackNames — (Array<String>)

      The names of organization conformance packs for which you want status details. If you do not specify any names, AWS Config returns details for all your organization conformance packs.

    • Limit — (Integer)

      The maximum number of OrganizationConformancePackStatuses returned on each page. If you do no specify a number, AWS Config uses the default. The default is 100.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConformancePackStatuses — (Array<map>)

        A list of OrganizationConformancePackStatus objects.

        • OrganizationConformancePackNamerequired — (String)

          The name that you assign to organization conformance pack.

        • Statusrequired — (String)

          Indicates deployment status of an organization conformance pack. When master account calls PutOrganizationConformancePack for the first time, conformance pack status is created in all the member accounts. When master account calls PutOrganizationConformancePack for the second time, conformance pack status is updated in all the member accounts. Additionally, conformance pack status is updated when one or more member accounts join or leave an organization. Conformance pack status is deleted when the master account deletes OrganizationConformancePack in all the member accounts and disables service access for config-multiaccountsetup.amazonaws.com.

          AWS Config sets the state of the conformance pack to:

          • CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all the member accounts.

          • CREATE_IN_PROGRESS when an organization conformance pack creation is in progress.

          • CREATE_FAILED when an organization conformance pack creation failed in one or more member accounts within that organization.

          • DELETE_FAILED when an organization conformance pack deletion failed in one or more member accounts within that organization.

          • DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress.

          • DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from all the member accounts.

          • UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all the member accounts.

          • UPDATE_IN_PROGRESS when an organization conformance pack update is in progress.

          • UPDATE_FAILED when an organization conformance pack update failed in one or more member accounts within that organization.

          Possible values include:
          • "CREATE_SUCCESSFUL"
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "DELETE_SUCCESSFUL"
          • "DELETE_FAILED"
          • "DELETE_IN_PROGRESS"
          • "UPDATE_SUCCESSFUL"
          • "UPDATE_IN_PROGRESS"
          • "UPDATE_FAILED"
        • ErrorCode — (String)

          An error code that is returned when organization conformance pack creation or deletion has failed in a member account.

        • ErrorMessage — (String)

          An error message indicating that organization conformance pack creation or deletion failed due to an error.

        • LastUpdateTime — (Date)

          The timestamp of the last update.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describePendingAggregationRequests(params = {}, callback) ⇒ AWS.Request

Returns a list of all pending aggregation requests.

Examples:

Calling the describePendingAggregationRequests operation

var params = {
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.describePendingAggregationRequests(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Limit — (Integer)

      The maximum number of evaluation results returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PendingAggregationRequests — (Array<map>)

        Returns a PendingAggregationRequests object.

        • RequesterAccountId — (String)

          The 12-digit account ID of the account requesting to aggregate data.

        • RequesterAwsRegion — (String)

          The region requesting to aggregate data.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRemediationConfigurations(params = {}, callback) ⇒ AWS.Request

Returns the details of one or more remediation configurations.

Examples:

Calling the describeRemediationConfigurations operation

var params = {
  ConfigRuleNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeRemediationConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleNames — (Array<String>)

      A list of AWS Config rule names of remediation configurations for which you want details.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RemediationConfigurations — (Array<map>)

        Returns a remediation configuration object.

        • ConfigRuleNamerequired — (String)

          The name of the AWS Config rule.

        • TargetTyperequired — (String)

          The type of the target. Target executes remediation. For example, SSM document.

          Possible values include:
          • "SSM_DOCUMENT"
        • TargetIdrequired — (String)

          Target ID is the name of the public document.

        • TargetVersion — (String)

          Version of the target. For example, version of the SSM document.

        • Parameters — (map<map>)

          An object of the RemediationParameterValue.

          • ResourceValue — (map)

            The value is dynamic and changes at run-time.

            • Valuerequired — (String)

              The value is a resource ID.

              Possible values include:
              • "RESOURCE_ID"
          • StaticValue — (map)

            The value is static and does not change at run-time.

            • Valuesrequired — (Array<String>)

              A list of values. For example, the ARN of the assumed role.

        • ResourceType — (String)

          The type of a resource.

        • Automatic — (Boolean)

          The remediation is triggered automatically.

        • ExecutionControls — (map)

          An ExecutionControls object.

          • SsmControls — (map)

            A SsmControls object.

            • ConcurrentExecutionRatePercentage — (Integer)

              The maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. You can specify a percentage, such as 10%. The default value is 10.

            • ErrorPercentage — (Integer)

              The percentage of errors that are allowed before SSM stops running automations on non-compliant resources for that specific rule. You can specify a percentage of errors, for example 10%. If you do not specifiy a percentage, the default is 50%. For example, if you set the ErrorPercentage to 40% for 10 non-compliant resources, then SSM stops running the automations when the fifth error is received.

        • MaximumAutomaticAttempts — (Integer)

          The maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5.

          For example, if you specify MaximumAutomaticAttempts as 5 with RetryAttemptsSeconds as 50 seconds, AWS Config throws an exception after the 5th failed attempt within 50 seconds.

        • RetryAttemptSeconds — (Integer)

          Maximum time in seconds that AWS Config runs auto-remediation. If you do not select a number, the default is 60 seconds.

          For example, if you specify RetryAttemptsSeconds as 50 seconds and MaximumAutomaticAttempts as 5, AWS Config will run auto-remediations 5 times within 50 seconds before throwing an exception.

        • Arn — (String)

          Amazon Resource Name (ARN) of remediation configuration.

        • CreatedByService — (String)

          Name of the service that owns the service linked rule, if applicable.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRemediationExceptions(params = {}, callback) ⇒ AWS.Request

Returns the details of one or more remediation exceptions. A detailed view of a remediation exception for a set of resources that includes an explanation of an exception and the time when the exception will be deleted. When you specify the limit and the next token, you receive a paginated response.

Note: When you specify the limit and the next token, you receive a paginated response. Limit and next token are not applicable if you request resources in batch. It is only applicable, when you request all resources.

Service Reference:

Examples:

Calling the describeRemediationExceptions operation

var params = {
  ConfigRuleName: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  ResourceKeys: [
    {
      ResourceId: 'STRING_VALUE',
      ResourceType: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.describeRemediationExceptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The name of the AWS Config rule.

    • ResourceKeys — (Array<map>)

      An exception list of resource exception keys to be processed with the current request. AWS Config adds exception for each resource key. For example, AWS Config adds 3 exceptions for 3 resource keys.

      • ResourceType — (String)

        The type of a resource.

      • ResourceId — (String)

        The ID of the resource (for example., sg-xxxxxx).

    • Limit — (Integer)

      The maximum number of RemediationExceptionResourceKey returned on each page. The default is 25. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RemediationExceptions — (Array<map>)

        Returns a list of remediation exception objects.

        • ConfigRuleNamerequired — (String)

          The name of the AWS Config rule.

        • ResourceTyperequired — (String)

          The type of a resource.

        • ResourceIdrequired — (String)

          The ID of the resource (for example., sg-xxxxxx).

        • Message — (String)

          An explanation of an remediation exception.

        • ExpirationTime — (Date)

          The time when the remediation exception will be deleted.

      • NextToken — (String)

        The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRemediationExecutionStatus(params = {}, callback) ⇒ AWS.Request

Provides a detailed view of a Remediation Execution for a set of resources including state, timestamps for when steps for the remediation execution occur, and any error messages for steps that have failed. When you specify the limit and the next token, you receive a paginated response.

Examples:

Calling the describeRemediationExecutionStatus operation

var params = {
  ConfigRuleName: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  ResourceKeys: [
    {
      resourceId: 'STRING_VALUE', /* required */
      resourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio /* required */
    },
    /* more items */
  ]
};
configservice.describeRemediationExecutionStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      A list of AWS Config rule names.

    • ResourceKeys — (Array<map>)

      A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.

      • resourceTyperequired — (String)

        The resource type.

        Possible values include:
        • "AWS::EC2::CustomerGateway"
        • "AWS::EC2::EIP"
        • "AWS::EC2::Host"
        • "AWS::EC2::Instance"
        • "AWS::EC2::InternetGateway"
        • "AWS::EC2::NetworkAcl"
        • "AWS::EC2::NetworkInterface"
        • "AWS::EC2::RouteTable"
        • "AWS::EC2::SecurityGroup"
        • "AWS::EC2::Subnet"
        • "AWS::CloudTrail::Trail"
        • "AWS::EC2::Volume"
        • "AWS::EC2::VPC"
        • "AWS::EC2::VPNConnection"
        • "AWS::EC2::VPNGateway"
        • "AWS::EC2::RegisteredHAInstance"
        • "AWS::EC2::NatGateway"
        • "AWS::EC2::EgressOnlyInternetGateway"
        • "AWS::EC2::VPCEndpoint"
        • "AWS::EC2::VPCEndpointService"
        • "AWS::EC2::FlowLog"
        • "AWS::EC2::VPCPeeringConnection"
        • "AWS::IAM::Group"
        • "AWS::IAM::Policy"
        • "AWS::IAM::Role"
        • "AWS::IAM::User"
        • "AWS::ElasticLoadBalancingV2::LoadBalancer"
        • "AWS::ACM::Certificate"
        • "AWS::RDS::DBInstance"
        • "AWS::RDS::DBParameterGroup"
        • "AWS::RDS::DBOptionGroup"
        • "AWS::RDS::DBSubnetGroup"
        • "AWS::RDS::DBSecurityGroup"
        • "AWS::RDS::DBSnapshot"
        • "AWS::RDS::DBCluster"
        • "AWS::RDS::DBClusterParameterGroup"
        • "AWS::RDS::DBClusterSnapshot"
        • "AWS::RDS::EventSubscription"
        • "AWS::S3::Bucket"
        • "AWS::S3::AccountPublicAccessBlock"
        • "AWS::Redshift::Cluster"
        • "AWS::Redshift::ClusterSnapshot"
        • "AWS::Redshift::ClusterParameterGroup"
        • "AWS::Redshift::ClusterSecurityGroup"
        • "AWS::Redshift::ClusterSubnetGroup"
        • "AWS::Redshift::EventSubscription"
        • "AWS::SSM::ManagedInstanceInventory"
        • "AWS::CloudWatch::Alarm"
        • "AWS::CloudFormation::Stack"
        • "AWS::ElasticLoadBalancing::LoadBalancer"
        • "AWS::AutoScaling::AutoScalingGroup"
        • "AWS::AutoScaling::LaunchConfiguration"
        • "AWS::AutoScaling::ScalingPolicy"
        • "AWS::AutoScaling::ScheduledAction"
        • "AWS::DynamoDB::Table"
        • "AWS::CodeBuild::Project"
        • "AWS::WAF::RateBasedRule"
        • "AWS::WAF::Rule"
        • "AWS::WAF::RuleGroup"
        • "AWS::WAF::WebACL"
        • "AWS::WAFRegional::RateBasedRule"
        • "AWS::WAFRegional::Rule"
        • "AWS::WAFRegional::RuleGroup"
        • "AWS::WAFRegional::WebACL"
        • "AWS::CloudFront::Distribution"
        • "AWS::CloudFront::StreamingDistribution"
        • "AWS::Lambda::Alias"
        • "AWS::Lambda::Function"
        • "AWS::ElasticBeanstalk::Application"
        • "AWS::ElasticBeanstalk::ApplicationVersion"
        • "AWS::ElasticBeanstalk::Environment"
        • "AWS::MobileHub::Project"
        • "AWS::XRay::EncryptionConfig"
        • "AWS::SSM::AssociationCompliance"
        • "AWS::SSM::PatchCompliance"
        • "AWS::Shield::Protection"
        • "AWS::ShieldRegional::Protection"
        • "AWS::Config::ResourceCompliance"
        • "AWS::LicenseManager::LicenseConfiguration"
        • "AWS::ApiGateway::DomainName"
        • "AWS::ApiGateway::Method"
        • "AWS::ApiGateway::Stage"
        • "AWS::ApiGateway::RestApi"
        • "AWS::ApiGatewayV2::DomainName"
        • "AWS::ApiGatewayV2::Stage"
        • "AWS::ApiGatewayV2::Api"
        • "AWS::CodePipeline::Pipeline"
        • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
        • "AWS::ServiceCatalog::CloudFormationProduct"
        • "AWS::ServiceCatalog::Portfolio"
      • resourceIdrequired — (String)

        The ID of the resource (for example., sg-xxxxxx).

    • Limit — (Integer)

      The maximum number of RemediationExecutionStatuses returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RemediationExecutionStatuses — (Array<map>)

        Returns a list of remediation execution statuses objects.

        • ResourceKey — (map)

          The details that identify a resource within AWS Config, including the resource type and resource ID.

          • resourceTyperequired — (String)

            The resource type.

            Possible values include:
            • "AWS::EC2::CustomerGateway"
            • "AWS::EC2::EIP"
            • "AWS::EC2::Host"
            • "AWS::EC2::Instance"
            • "AWS::EC2::InternetGateway"
            • "AWS::EC2::NetworkAcl"
            • "AWS::EC2::NetworkInterface"
            • "AWS::EC2::RouteTable"
            • "AWS::EC2::SecurityGroup"
            • "AWS::EC2::Subnet"
            • "AWS::CloudTrail::Trail"
            • "AWS::EC2::Volume"
            • "AWS::EC2::VPC"
            • "AWS::EC2::VPNConnection"
            • "AWS::EC2::VPNGateway"
            • "AWS::EC2::RegisteredHAInstance"
            • "AWS::EC2::NatGateway"
            • "AWS::EC2::EgressOnlyInternetGateway"
            • "AWS::EC2::VPCEndpoint"
            • "AWS::EC2::VPCEndpointService"
            • "AWS::EC2::FlowLog"
            • "AWS::EC2::VPCPeeringConnection"
            • "AWS::IAM::Group"
            • "AWS::IAM::Policy"
            • "AWS::IAM::Role"
            • "AWS::IAM::User"
            • "AWS::ElasticLoadBalancingV2::LoadBalancer"
            • "AWS::ACM::Certificate"
            • "AWS::RDS::DBInstance"
            • "AWS::RDS::DBParameterGroup"
            • "AWS::RDS::DBOptionGroup"
            • "AWS::RDS::DBSubnetGroup"
            • "AWS::RDS::DBSecurityGroup"
            • "AWS::RDS::DBSnapshot"
            • "AWS::RDS::DBCluster"
            • "AWS::RDS::DBClusterParameterGroup"
            • "AWS::RDS::DBClusterSnapshot"
            • "AWS::RDS::EventSubscription"
            • "AWS::S3::Bucket"
            • "AWS::S3::AccountPublicAccessBlock"
            • "AWS::Redshift::Cluster"
            • "AWS::Redshift::ClusterSnapshot"
            • "AWS::Redshift::ClusterParameterGroup"
            • "AWS::Redshift::ClusterSecurityGroup"
            • "AWS::Redshift::ClusterSubnetGroup"
            • "AWS::Redshift::EventSubscription"
            • "AWS::SSM::ManagedInstanceInventory"
            • "AWS::CloudWatch::Alarm"
            • "AWS::CloudFormation::Stack"
            • "AWS::ElasticLoadBalancing::LoadBalancer"
            • "AWS::AutoScaling::AutoScalingGroup"
            • "AWS::AutoScaling::LaunchConfiguration"
            • "AWS::AutoScaling::ScalingPolicy"
            • "AWS::AutoScaling::ScheduledAction"
            • "AWS::DynamoDB::Table"
            • "AWS::CodeBuild::Project"
            • "AWS::WAF::RateBasedRule"
            • "AWS::WAF::Rule"
            • "AWS::WAF::RuleGroup"
            • "AWS::WAF::WebACL"
            • "AWS::WAFRegional::RateBasedRule"
            • "AWS::WAFRegional::Rule"
            • "AWS::WAFRegional::RuleGroup"
            • "AWS::WAFRegional::WebACL"
            • "AWS::CloudFront::Distribution"
            • "AWS::CloudFront::StreamingDistribution"
            • "AWS::Lambda::Alias"
            • "AWS::Lambda::Function"
            • "AWS::ElasticBeanstalk::Application"
            • "AWS::ElasticBeanstalk::ApplicationVersion"
            • "AWS::ElasticBeanstalk::Environment"
            • "AWS::MobileHub::Project"
            • "AWS::XRay::EncryptionConfig"
            • "AWS::SSM::AssociationCompliance"
            • "AWS::SSM::PatchCompliance"
            • "AWS::Shield::Protection"
            • "AWS::ShieldRegional::Protection"
            • "AWS::Config::ResourceCompliance"
            • "AWS::LicenseManager::LicenseConfiguration"
            • "AWS::ApiGateway::DomainName"
            • "AWS::ApiGateway::Method"
            • "AWS::ApiGateway::Stage"
            • "AWS::ApiGateway::RestApi"
            • "AWS::ApiGatewayV2::DomainName"
            • "AWS::ApiGatewayV2::Stage"
            • "AWS::ApiGatewayV2::Api"
            • "AWS::CodePipeline::Pipeline"
            • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
            • "AWS::ServiceCatalog::CloudFormationProduct"
            • "AWS::ServiceCatalog::Portfolio"
          • resourceIdrequired — (String)

            The ID of the resource (for example., sg-xxxxxx).

        • State — (String)

          ENUM of the values.

          Possible values include:
          • "QUEUED"
          • "IN_PROGRESS"
          • "SUCCEEDED"
          • "FAILED"
        • StepDetails — (Array<map>)

          Details of every step.

          • Name — (String)

            The details of the step.

          • State — (String)

            The valid status of the step.

            Possible values include:
            • "SUCCEEDED"
            • "PENDING"
            • "FAILED"
          • ErrorMessage — (String)

            An error message if the step was interrupted during execution.

          • StartTime — (Date)

            The time when the step started.

          • StopTime — (Date)

            The time when the step stopped.

        • InvocationTime — (Date)

          Start time when the remediation was executed.

        • LastUpdatedTime — (Date)

          The time when the remediation execution was last updated.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRetentionConfigurations(params = {}, callback) ⇒ AWS.Request

Returns the details of one or more retention configurations. If the retention configuration name is not specified, this action returns the details for all the retention configurations for that account.

Note: Currently, AWS Config supports only one retention configuration per region in your account.

Service Reference:

Examples:

Calling the describeRetentionConfigurations operation

var params = {
  NextToken: 'STRING_VALUE',
  RetentionConfigurationNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.describeRetentionConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • RetentionConfigurationNames — (Array<String>)

      A list of names of retention configurations for which you want details. If you do not specify a name, AWS Config returns details for all the retention configurations for that account.

      Note: Currently, AWS Config supports only one retention configuration per region in your account.
    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RetentionConfigurations — (Array<map>)

        Returns a retention configuration object.

        • Namerequired — (String)

          The name of the retention configuration object.

        • RetentionPeriodInDaysrequired — (Integer)

          Number of days AWS Config stores your historical information.

          Note: Currently, only applicable to the configuration item history.
      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getAggregateComplianceDetailsByConfigRule(params = {}, callback) ⇒ AWS.Request

Returns the evaluation results for the specified AWS Config rule for a specific resource in a rule. The results indicate which AWS resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.

Note: The results can return an empty result page. But if you have a nextToken, the results are displayed on the next page.

Examples:

Calling the getAggregateComplianceDetailsByConfigRule operation

var params = {
  AccountId: 'STRING_VALUE', /* required */
  AwsRegion: 'STRING_VALUE', /* required */
  ConfigRuleName: 'STRING_VALUE', /* required */
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  ComplianceType: COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA,
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getAggregateComplianceDetailsByConfigRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • ConfigRuleName — (String)

      The name of the AWS Config rule for which you want compliance information.

    • AccountId — (String)

      The 12-digit account ID of the source account.

    • AwsRegion — (String)

      The source region from where the data is aggregated.

    • ComplianceType — (String)

      The resource compliance status.

      Note: For the GetAggregateComplianceDetailsByConfigRuleRequest data type, AWS Config supports only the COMPLIANT and NON_COMPLIANT. AWS Config does not support the NOT_APPLICABLE and INSUFFICIENT_DATA values.
      Possible values include:
      • "COMPLIANT"
      • "NON_COMPLIANT"
      • "NOT_APPLICABLE"
      • "INSUFFICIENT_DATA"
    • Limit — (Integer)

      The maximum number of evaluation results returned on each page. The default is 50. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AggregateEvaluationResults — (Array<map>)

        Returns an AggregateEvaluationResults object.

        • EvaluationResultIdentifier — (map)

          Uniquely identifies the evaluation result.

          • EvaluationResultQualifier — (map)

            Identifies an AWS Config rule used to evaluate an AWS resource, and provides the type and ID of the evaluated resource.

            • ConfigRuleName — (String)

              The name of the AWS Config rule that was used in the evaluation.

            • ResourceType — (String)

              The type of AWS resource that was evaluated.

            • ResourceId — (String)

              The ID of the evaluated AWS resource.

          • OrderingTimestamp — (Date)

            The time of the event that triggered the evaluation of your AWS resources. The time can indicate when AWS Config delivered a configuration item change notification, or it can indicate when AWS Config delivered the configuration snapshot, depending on which event triggered the evaluation.

        • ComplianceType — (String)

          The resource compliance status.

          For the AggregationEvaluationResult data type, AWS Config supports only the COMPLIANT and NON_COMPLIANT. AWS Config does not support the NOT_APPLICABLE and INSUFFICIENT_DATA value.

          Possible values include:
          • "COMPLIANT"
          • "NON_COMPLIANT"
          • "NOT_APPLICABLE"
          • "INSUFFICIENT_DATA"
        • ResultRecordedTime — (Date)

          The time when AWS Config recorded the aggregate evaluation result.

        • ConfigRuleInvokedTime — (Date)

          The time when the AWS Config rule evaluated the AWS resource.

        • Annotation — (String)

          Supplementary information about how the agrregate evaluation determined the compliance.

        • AccountId — (String)

          The 12-digit account ID of the source account.

        • AwsRegion — (String)

          The source region from where the data is aggregated.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getAggregateConfigRuleComplianceSummary(params = {}, callback) ⇒ AWS.Request

Returns the number of compliant and noncompliant rules for one or more accounts and regions in an aggregator.

Note: The results can return an empty result page, but if you have a nextToken, the results are displayed on the next page.

Examples:

Calling the getAggregateConfigRuleComplianceSummary operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  Filters: {
    AccountId: 'STRING_VALUE',
    AwsRegion: 'STRING_VALUE'
  },
  GroupByKey: ACCOUNT_ID | AWS_REGION,
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getAggregateConfigRuleComplianceSummary(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • Filters — (map)

      Filters the results based on the ConfigRuleComplianceSummaryFilters object.

      • AccountId — (String)

        The 12-digit account ID of the source account.

      • AwsRegion — (String)

        The source region where the data is aggregated.

    • GroupByKey — (String)

      Groups the result based on ACCOUNT_ID or AWS_REGION.

      Possible values include:
      • "ACCOUNT_ID"
      • "AWS_REGION"
    • Limit — (Integer)

      The maximum number of evaluation results returned on each page. The default is 1000. You cannot specify a number greater than 1000. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GroupByKey — (String)

        Groups the result based on ACCOUNT_ID or AWS_REGION.

      • AggregateComplianceCounts — (Array<map>)

        Returns a list of AggregateComplianceCounts object.

        • GroupName — (String)

          The 12-digit account ID or region based on the GroupByKey value.

        • ComplianceSummary — (map)

          The number of compliant and noncompliant AWS Config rules.

          • CompliantResourceCount — (map)

            The number of AWS Config rules or AWS resources that are compliant, up to a maximum of 25 for rules and 100 for resources.

            • CappedCount — (Integer)

              The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

            • CapExceeded — (Boolean)

              Indicates whether the maximum count is reached.

          • NonCompliantResourceCount — (map)

            The number of AWS Config rules or AWS resources that are noncompliant, up to a maximum of 25 for rules and 100 for resources.

            • CappedCount — (Integer)

              The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

            • CapExceeded — (Boolean)

              Indicates whether the maximum count is reached.

          • ComplianceSummaryTimestamp — (Date)

            The time that AWS Config created the compliance summary.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getAggregateDiscoveredResourceCounts(params = {}, callback) ⇒ AWS.Request

Returns the resource counts across accounts and regions that are present in your AWS Config aggregator. You can request the resource counts by providing filters and GroupByKey.

For example, if the input contains accountID 12345678910 and region us-east-1 in filters, the API returns the count of resources in account ID 12345678910 and region us-east-1. If the input contains ACCOUNT_ID as a GroupByKey, the API returns resource counts for all source accounts that are present in your aggregator.

Examples:

Calling the getAggregateDiscoveredResourceCounts operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  Filters: {
    AccountId: 'STRING_VALUE',
    Region: 'STRING_VALUE',
    ResourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio
  },
  GroupByKey: RESOURCE_TYPE | ACCOUNT_ID | AWS_REGION,
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getAggregateDiscoveredResourceCounts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • Filters — (map)

      Filters the results based on the ResourceCountFilters object.

      • ResourceType — (String)

        The type of the AWS resource.

        Possible values include:
        • "AWS::EC2::CustomerGateway"
        • "AWS::EC2::EIP"
        • "AWS::EC2::Host"
        • "AWS::EC2::Instance"
        • "AWS::EC2::InternetGateway"
        • "AWS::EC2::NetworkAcl"
        • "AWS::EC2::NetworkInterface"
        • "AWS::EC2::RouteTable"
        • "AWS::EC2::SecurityGroup"
        • "AWS::EC2::Subnet"
        • "AWS::CloudTrail::Trail"
        • "AWS::EC2::Volume"
        • "AWS::EC2::VPC"
        • "AWS::EC2::VPNConnection"
        • "AWS::EC2::VPNGateway"
        • "AWS::EC2::RegisteredHAInstance"
        • "AWS::EC2::NatGateway"
        • "AWS::EC2::EgressOnlyInternetGateway"
        • "AWS::EC2::VPCEndpoint"
        • "AWS::EC2::VPCEndpointService"
        • "AWS::EC2::FlowLog"
        • "AWS::EC2::VPCPeeringConnection"
        • "AWS::IAM::Group"
        • "AWS::IAM::Policy"
        • "AWS::IAM::Role"
        • "AWS::IAM::User"
        • "AWS::ElasticLoadBalancingV2::LoadBalancer"
        • "AWS::ACM::Certificate"
        • "AWS::RDS::DBInstance"
        • "AWS::RDS::DBParameterGroup"
        • "AWS::RDS::DBOptionGroup"
        • "AWS::RDS::DBSubnetGroup"
        • "AWS::RDS::DBSecurityGroup"
        • "AWS::RDS::DBSnapshot"
        • "AWS::RDS::DBCluster"
        • "AWS::RDS::DBClusterParameterGroup"
        • "AWS::RDS::DBClusterSnapshot"
        • "AWS::RDS::EventSubscription"
        • "AWS::S3::Bucket"
        • "AWS::S3::AccountPublicAccessBlock"
        • "AWS::Redshift::Cluster"
        • "AWS::Redshift::ClusterSnapshot"
        • "AWS::Redshift::ClusterParameterGroup"
        • "AWS::Redshift::ClusterSecurityGroup"
        • "AWS::Redshift::ClusterSubnetGroup"
        • "AWS::Redshift::EventSubscription"
        • "AWS::SSM::ManagedInstanceInventory"
        • "AWS::CloudWatch::Alarm"
        • "AWS::CloudFormation::Stack"
        • "AWS::ElasticLoadBalancing::LoadBalancer"
        • "AWS::AutoScaling::AutoScalingGroup"
        • "AWS::AutoScaling::LaunchConfiguration"
        • "AWS::AutoScaling::ScalingPolicy"
        • "AWS::AutoScaling::ScheduledAction"
        • "AWS::DynamoDB::Table"
        • "AWS::CodeBuild::Project"
        • "AWS::WAF::RateBasedRule"
        • "AWS::WAF::Rule"
        • "AWS::WAF::RuleGroup"
        • "AWS::WAF::WebACL"
        • "AWS::WAFRegional::RateBasedRule"
        • "AWS::WAFRegional::Rule"
        • "AWS::WAFRegional::RuleGroup"
        • "AWS::WAFRegional::WebACL"
        • "AWS::CloudFront::Distribution"
        • "AWS::CloudFront::StreamingDistribution"
        • "AWS::Lambda::Alias"
        • "AWS::Lambda::Function"
        • "AWS::ElasticBeanstalk::Application"
        • "AWS::ElasticBeanstalk::ApplicationVersion"
        • "AWS::ElasticBeanstalk::Environment"
        • "AWS::MobileHub::Project"
        • "AWS::XRay::EncryptionConfig"
        • "AWS::SSM::AssociationCompliance"
        • "AWS::SSM::PatchCompliance"
        • "AWS::Shield::Protection"
        • "AWS::ShieldRegional::Protection"
        • "AWS::Config::ResourceCompliance"
        • "AWS::LicenseManager::LicenseConfiguration"
        • "AWS::ApiGateway::DomainName"
        • "AWS::ApiGateway::Method"
        • "AWS::ApiGateway::Stage"
        • "AWS::ApiGateway::RestApi"
        • "AWS::ApiGatewayV2::DomainName"
        • "AWS::ApiGatewayV2::Stage"
        • "AWS::ApiGatewayV2::Api"
        • "AWS::CodePipeline::Pipeline"
        • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
        • "AWS::ServiceCatalog::CloudFormationProduct"
        • "AWS::ServiceCatalog::Portfolio"
      • AccountId — (String)

        The 12-digit ID of the account.

      • Region — (String)

        The region where the account is located.

    • GroupByKey — (String)

      The key to group the resource counts.

      Possible values include:
      • "RESOURCE_TYPE"
      • "ACCOUNT_ID"
      • "AWS_REGION"
    • Limit — (Integer)

      The maximum number of GroupedResourceCount objects returned on each page. The default is 1000. You cannot specify a number greater than 1000. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TotalDiscoveredResources — (Integer)

        The total number of resources that are present in an aggregator with the filters that you provide.

      • GroupByKey — (String)

        The key passed into the request object. If GroupByKey is not provided, the result will be empty.

      • GroupedResourceCounts — (Array<map>)

        Returns a list of GroupedResourceCount objects.

        • GroupNamerequired — (String)

          The name of the group that can be region, account ID, or resource type. For example, region1, region2 if the region was chosen as GroupByKey.

        • ResourceCountrequired — (Integer)

          The number of resources in the group.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getAggregateResourceConfig(params = {}, callback) ⇒ AWS.Request

Returns configuration item that is aggregated for your specific resource in a specific source account and region.

Service Reference:

Examples:

Calling the getAggregateResourceConfig operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  ResourceIdentifier: { /* required */
    ResourceId: 'STRING_VALUE', /* required */
    ResourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio, /* required */
    SourceAccountId: 'STRING_VALUE', /* required */
    SourceRegion: 'STRING_VALUE', /* required */
    ResourceName: 'STRING_VALUE'
  }
};
configservice.getAggregateResourceConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • ResourceIdentifier — (map)

      An object that identifies aggregate resource.

      • SourceAccountIdrequired — (String)

        The 12-digit account ID of the source account.

      • SourceRegionrequired — (String)

        The source region where data is aggregated.

      • ResourceIdrequired — (String)

        The ID of the AWS resource.

      • ResourceTyperequired — (String)

        The type of the AWS resource.

        Possible values include:
        • "AWS::EC2::CustomerGateway"
        • "AWS::EC2::EIP"
        • "AWS::EC2::Host"
        • "AWS::EC2::Instance"
        • "AWS::EC2::InternetGateway"
        • "AWS::EC2::NetworkAcl"
        • "AWS::EC2::NetworkInterface"
        • "AWS::EC2::RouteTable"
        • "AWS::EC2::SecurityGroup"
        • "AWS::EC2::Subnet"
        • "AWS::CloudTrail::Trail"
        • "AWS::EC2::Volume"
        • "AWS::EC2::VPC"
        • "AWS::EC2::VPNConnection"
        • "AWS::EC2::VPNGateway"
        • "AWS::EC2::RegisteredHAInstance"
        • "AWS::EC2::NatGateway"
        • "AWS::EC2::EgressOnlyInternetGateway"
        • "AWS::EC2::VPCEndpoint"
        • "AWS::EC2::VPCEndpointService"
        • "AWS::EC2::FlowLog"
        • "AWS::EC2::VPCPeeringConnection"
        • "AWS::IAM::Group"
        • "AWS::IAM::Policy"
        • "AWS::IAM::Role"
        • "AWS::IAM::User"
        • "AWS::ElasticLoadBalancingV2::LoadBalancer"
        • "AWS::ACM::Certificate"
        • "AWS::RDS::DBInstance"
        • "AWS::RDS::DBParameterGroup"
        • "AWS::RDS::DBOptionGroup"
        • "AWS::RDS::DBSubnetGroup"
        • "AWS::RDS::DBSecurityGroup"
        • "AWS::RDS::DBSnapshot"
        • "AWS::RDS::DBCluster"
        • "AWS::RDS::DBClusterParameterGroup"
        • "AWS::RDS::DBClusterSnapshot"
        • "AWS::RDS::EventSubscription"
        • "AWS::S3::Bucket"
        • "AWS::S3::AccountPublicAccessBlock"
        • "AWS::Redshift::Cluster"
        • "AWS::Redshift::ClusterSnapshot"
        • "AWS::Redshift::ClusterParameterGroup"
        • "AWS::Redshift::ClusterSecurityGroup"
        • "AWS::Redshift::ClusterSubnetGroup"
        • "AWS::Redshift::EventSubscription"
        • "AWS::SSM::ManagedInstanceInventory"
        • "AWS::CloudWatch::Alarm"
        • "AWS::CloudFormation::Stack"
        • "AWS::ElasticLoadBalancing::LoadBalancer"
        • "AWS::AutoScaling::AutoScalingGroup"
        • "AWS::AutoScaling::LaunchConfiguration"
        • "AWS::AutoScaling::ScalingPolicy"
        • "AWS::AutoScaling::ScheduledAction"
        • "AWS::DynamoDB::Table"
        • "AWS::CodeBuild::Project"
        • "AWS::WAF::RateBasedRule"
        • "AWS::WAF::Rule"
        • "AWS::WAF::RuleGroup"
        • "AWS::WAF::WebACL"
        • "AWS::WAFRegional::RateBasedRule"
        • "AWS::WAFRegional::Rule"
        • "AWS::WAFRegional::RuleGroup"
        • "AWS::WAFRegional::WebACL"
        • "AWS::CloudFront::Distribution"
        • "AWS::CloudFront::StreamingDistribution"
        • "AWS::Lambda::Alias"
        • "AWS::Lambda::Function"
        • "AWS::ElasticBeanstalk::Application"
        • "AWS::ElasticBeanstalk::ApplicationVersion"
        • "AWS::ElasticBeanstalk::Environment"
        • "AWS::MobileHub::Project"
        • "AWS::XRay::EncryptionConfig"
        • "AWS::SSM::AssociationCompliance"
        • "AWS::SSM::PatchCompliance"
        • "AWS::Shield::Protection"
        • "AWS::ShieldRegional::Protection"
        • "AWS::Config::ResourceCompliance"
        • "AWS::LicenseManager::LicenseConfiguration"
        • "AWS::ApiGateway::DomainName"
        • "AWS::ApiGateway::Method"
        • "AWS::ApiGateway::Stage"
        • "AWS::ApiGateway::RestApi"
        • "AWS::ApiGatewayV2::DomainName"
        • "AWS::ApiGatewayV2::Stage"
        • "AWS::ApiGatewayV2::Api"
        • "AWS::CodePipeline::Pipeline"
        • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
        • "AWS::ServiceCatalog::CloudFormationProduct"
        • "AWS::ServiceCatalog::Portfolio"
      • ResourceName — (String)

        The name of the AWS resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigurationItem — (map)

        Returns a ConfigurationItem object.

        • version — (String)

          The version number of the resource configuration.

        • accountId — (String)

          The 12-digit AWS account ID associated with the resource.

        • configurationItemCaptureTime — (Date)

          The time when the configuration recording was initiated.

        • configurationItemStatus — (String)

          The configuration item status.

          Possible values include:
          • "OK"
          • "ResourceDiscovered"
          • "ResourceNotRecorded"
          • "ResourceDeleted"
          • "ResourceDeletedNotRecorded"
        • configurationStateId — (String)

          An identifier that indicates the ordering of the configuration items of a resource.

        • configurationItemMD5Hash — (String)

          Unique MD5 hash that represents the configuration item's state.

          You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

        • arn — (String)

          accoun

        • resourceType — (String)

          The type of AWS resource.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • resourceId — (String)

          The ID of the resource (for example, sg-xxxxxx).

        • resourceName — (String)

          The custom name of the resource, if available.

        • awsRegion — (String)

          The region where the resource resides.

        • availabilityZone — (String)

          The Availability Zone associated with the resource.

        • resourceCreationTime — (Date)

          The time stamp when the resource was created.

        • tags — (map<String>)

          A mapping of key value tags associated with the resource.

        • relatedEvents — (Array<String>)

          A list of CloudTrail event IDs.

          A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What Is AWS CloudTrail.

          An empty field indicates that the current configuration was not initiated by any event. As of Version 1.3, the relatedEvents field is empty. You can access the LookupEvents API in the AWS CloudTrail API Reference to retrieve the events for the resource.

        • relationships — (Array<map>)

          A list of related AWS resources.

          • resourceType — (String)

            The resource type of the related resource.

            Possible values include:
            • "AWS::EC2::CustomerGateway"
            • "AWS::EC2::EIP"
            • "AWS::EC2::Host"
            • "AWS::EC2::Instance"
            • "AWS::EC2::InternetGateway"
            • "AWS::EC2::NetworkAcl"
            • "AWS::EC2::NetworkInterface"
            • "AWS::EC2::RouteTable"
            • "AWS::EC2::SecurityGroup"
            • "AWS::EC2::Subnet"
            • "AWS::CloudTrail::Trail"
            • "AWS::EC2::Volume"
            • "AWS::EC2::VPC"
            • "AWS::EC2::VPNConnection"
            • "AWS::EC2::VPNGateway"
            • "AWS::EC2::RegisteredHAInstance"
            • "AWS::EC2::NatGateway"
            • "AWS::EC2::EgressOnlyInternetGateway"
            • "AWS::EC2::VPCEndpoint"
            • "AWS::EC2::VPCEndpointService"
            • "AWS::EC2::FlowLog"
            • "AWS::EC2::VPCPeeringConnection"
            • "AWS::IAM::Group"
            • "AWS::IAM::Policy"
            • "AWS::IAM::Role"
            • "AWS::IAM::User"
            • "AWS::ElasticLoadBalancingV2::LoadBalancer"
            • "AWS::ACM::Certificate"
            • "AWS::RDS::DBInstance"
            • "AWS::RDS::DBParameterGroup"
            • "AWS::RDS::DBOptionGroup"
            • "AWS::RDS::DBSubnetGroup"
            • "AWS::RDS::DBSecurityGroup"
            • "AWS::RDS::DBSnapshot"
            • "AWS::RDS::DBCluster"
            • "AWS::RDS::DBClusterParameterGroup"
            • "AWS::RDS::DBClusterSnapshot"
            • "AWS::RDS::EventSubscription"
            • "AWS::S3::Bucket"
            • "AWS::S3::AccountPublicAccessBlock"
            • "AWS::Redshift::Cluster"
            • "AWS::Redshift::ClusterSnapshot"
            • "AWS::Redshift::ClusterParameterGroup"
            • "AWS::Redshift::ClusterSecurityGroup"
            • "AWS::Redshift::ClusterSubnetGroup"
            • "AWS::Redshift::EventSubscription"
            • "AWS::SSM::ManagedInstanceInventory"
            • "AWS::CloudWatch::Alarm"
            • "AWS::CloudFormation::Stack"
            • "AWS::ElasticLoadBalancing::LoadBalancer"
            • "AWS::AutoScaling::AutoScalingGroup"
            • "AWS::AutoScaling::LaunchConfiguration"
            • "AWS::AutoScaling::ScalingPolicy"
            • "AWS::AutoScaling::ScheduledAction"
            • "AWS::DynamoDB::Table"
            • "AWS::CodeBuild::Project"
            • "AWS::WAF::RateBasedRule"
            • "AWS::WAF::Rule"
            • "AWS::WAF::RuleGroup"
            • "AWS::WAF::WebACL"
            • "AWS::WAFRegional::RateBasedRule"
            • "AWS::WAFRegional::Rule"
            • "AWS::WAFRegional::RuleGroup"
            • "AWS::WAFRegional::WebACL"
            • "AWS::CloudFront::Distribution"
            • "AWS::CloudFront::StreamingDistribution"
            • "AWS::Lambda::Alias"
            • "AWS::Lambda::Function"
            • "AWS::ElasticBeanstalk::Application"
            • "AWS::ElasticBeanstalk::ApplicationVersion"
            • "AWS::ElasticBeanstalk::Environment"
            • "AWS::MobileHub::Project"
            • "AWS::XRay::EncryptionConfig"
            • "AWS::SSM::AssociationCompliance"
            • "AWS::SSM::PatchCompliance"
            • "AWS::Shield::Protection"
            • "AWS::ShieldRegional::Protection"
            • "AWS::Config::ResourceCompliance"
            • "AWS::LicenseManager::LicenseConfiguration"
            • "AWS::ApiGateway::DomainName"
            • "AWS::ApiGateway::Method"
            • "AWS::ApiGateway::Stage"
            • "AWS::ApiGateway::RestApi"
            • "AWS::ApiGatewayV2::DomainName"
            • "AWS::ApiGatewayV2::Stage"
            • "AWS::ApiGatewayV2::Api"
            • "AWS::CodePipeline::Pipeline"
            • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
            • "AWS::ServiceCatalog::CloudFormationProduct"
            • "AWS::ServiceCatalog::Portfolio"
          • resourceId — (String)

            The ID of the related resource (for example, sg-xxxxxx).

          • resourceName — (String)

            The custom name of the related resource, if available.

          • relationshipName — (String)

            The type of relationship with the related resource.

        • configuration — (String)

          The description of the resource configuration.

        • supplementaryConfiguration — (map<String>)

          Configuration attributes that AWS Config returns for certain resource types to supplement the information returned for the configuration parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getComplianceDetailsByConfigRule(params = {}, callback) ⇒ AWS.Request

Returns the evaluation results for the specified AWS Config rule. The results indicate which AWS resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.

Examples:

Calling the getComplianceDetailsByConfigRule operation

var params = {
  ConfigRuleName: 'STRING_VALUE', /* required */
  ComplianceTypes: [
    COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA,
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getComplianceDetailsByConfigRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The name of the AWS Config rule for which you want compliance information.

    • ComplianceTypes — (Array<String>)

      Filters the results by compliance.

      The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE.

    • Limit — (Integer)

      The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EvaluationResults — (Array<map>)

        Indicates whether the AWS resource complies with the specified AWS Config rule.

        • EvaluationResultIdentifier — (map)

          Uniquely identifies the evaluation result.

          • EvaluationResultQualifier — (map)

            Identifies an AWS Config rule used to evaluate an AWS resource, and provides the type and ID of the evaluated resource.

            • ConfigRuleName — (String)

              The name of the AWS Config rule that was used in the evaluation.

            • ResourceType — (String)

              The type of AWS resource that was evaluated.

            • ResourceId — (String)

              The ID of the evaluated AWS resource.

          • OrderingTimestamp — (Date)

            The time of the event that triggered the evaluation of your AWS resources. The time can indicate when AWS Config delivered a configuration item change notification, or it can indicate when AWS Config delivered the configuration snapshot, depending on which event triggered the evaluation.

        • ComplianceType — (String)

          Indicates whether the AWS resource complies with the AWS Config rule that evaluated it.

          For the EvaluationResult data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA value for the EvaluationResult data type.

          Possible values include:
          • "COMPLIANT"
          • "NON_COMPLIANT"
          • "NOT_APPLICABLE"
          • "INSUFFICIENT_DATA"
        • ResultRecordedTime — (Date)

          The time when AWS Config recorded the evaluation result.

        • ConfigRuleInvokedTime — (Date)

          The time when the AWS Config rule evaluated the AWS resource.

        • Annotation — (String)

          Supplementary information about how the evaluation determined the compliance.

        • ResultToken — (String)

          An encrypted token that associates an evaluation with an AWS Config rule. The token identifies the rule, the AWS resource being evaluated, and the event that triggered the evaluation.

      • NextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getComplianceDetailsByResource(params = {}, callback) ⇒ AWS.Request

Returns the evaluation results for the specified AWS resource. The results indicate which AWS Config rules were used to evaluate the resource, when each rule was last used, and whether the resource complies with each rule.

Service Reference:

Examples:

Calling the getComplianceDetailsByResource operation

var params = {
  ResourceId: 'STRING_VALUE', /* required */
  ResourceType: 'STRING_VALUE', /* required */
  ComplianceTypes: [
    COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA,
    /* more items */
  ],
  NextToken: 'STRING_VALUE'
};
configservice.getComplianceDetailsByResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceType — (String)

      The type of the AWS resource for which you want compliance information.

    • ResourceId — (String)

      The ID of the AWS resource for which you want compliance information.

    • ComplianceTypes — (Array<String>)

      Filters the results by compliance.

      The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EvaluationResults — (Array<map>)

        Indicates whether the specified AWS resource complies each AWS Config rule.

        • EvaluationResultIdentifier — (map)

          Uniquely identifies the evaluation result.

          • EvaluationResultQualifier — (map)

            Identifies an AWS Config rule used to evaluate an AWS resource, and provides the type and ID of the evaluated resource.

            • ConfigRuleName — (String)

              The name of the AWS Config rule that was used in the evaluation.

            • ResourceType — (String)

              The type of AWS resource that was evaluated.

            • ResourceId — (String)

              The ID of the evaluated AWS resource.

          • OrderingTimestamp — (Date)

            The time of the event that triggered the evaluation of your AWS resources. The time can indicate when AWS Config delivered a configuration item change notification, or it can indicate when AWS Config delivered the configuration snapshot, depending on which event triggered the evaluation.

        • ComplianceType — (String)

          Indicates whether the AWS resource complies with the AWS Config rule that evaluated it.

          For the EvaluationResult data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA value for the EvaluationResult data type.

          Possible values include:
          • "COMPLIANT"
          • "NON_COMPLIANT"
          • "NOT_APPLICABLE"
          • "INSUFFICIENT_DATA"
        • ResultRecordedTime — (Date)

          The time when AWS Config recorded the evaluation result.

        • ConfigRuleInvokedTime — (Date)

          The time when the AWS Config rule evaluated the AWS resource.

        • Annotation — (String)

          Supplementary information about how the evaluation determined the compliance.

        • ResultToken — (String)

          An encrypted token that associates an evaluation with an AWS Config rule. The token identifies the rule, the AWS resource being evaluated, and the event that triggered the evaluation.

      • NextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getComplianceSummaryByConfigRule(params = {}, callback) ⇒ AWS.Request

Returns the number of AWS Config rules that are compliant and noncompliant, up to a maximum of 25 for each.

Examples:

Calling the getComplianceSummaryByConfigRule operation

configservice.getComplianceSummaryByConfigRule(function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ComplianceSummary — (map)

        The number of AWS Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.

        • CompliantResourceCount — (map)

          The number of AWS Config rules or AWS resources that are compliant, up to a maximum of 25 for rules and 100 for resources.

          • CappedCount — (Integer)

            The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

          • CapExceeded — (Boolean)

            Indicates whether the maximum count is reached.

        • NonCompliantResourceCount — (map)

          The number of AWS Config rules or AWS resources that are noncompliant, up to a maximum of 25 for rules and 100 for resources.

          • CappedCount — (Integer)

            The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

          • CapExceeded — (Boolean)

            Indicates whether the maximum count is reached.

        • ComplianceSummaryTimestamp — (Date)

          The time that AWS Config created the compliance summary.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getComplianceSummaryByResourceType(params = {}, callback) ⇒ AWS.Request

Returns the number of resources that are compliant and the number that are noncompliant. You can specify one or more resource types to get these numbers for each resource type. The maximum number returned is 100.

Examples:

Calling the getComplianceSummaryByResourceType operation

var params = {
  ResourceTypes: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.getComplianceSummaryByResourceType(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceTypes — (Array<String>)

      Specify one or more resource types to get the number of resources that are compliant and the number that are noncompliant for each resource type.

      For this request, you can specify an AWS resource type such as AWS::EC2::Instance. You can specify that the resource type is an AWS account by specifying AWS::::Account.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ComplianceSummariesByResourceType — (Array<map>)

        The number of resources that are compliant and the number that are noncompliant. If one or more resource types were provided with the request, the numbers are returned for each resource type. The maximum number returned is 100.

        • ResourceType — (String)

          The type of AWS resource.

        • ComplianceSummary — (map)

          The number of AWS resources that are compliant or noncompliant, up to a maximum of 100 for each.

          • CompliantResourceCount — (map)

            The number of AWS Config rules or AWS resources that are compliant, up to a maximum of 25 for rules and 100 for resources.

            • CappedCount — (Integer)

              The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

            • CapExceeded — (Boolean)

              Indicates whether the maximum count is reached.

          • NonCompliantResourceCount — (map)

            The number of AWS Config rules or AWS resources that are noncompliant, up to a maximum of 25 for rules and 100 for resources.

            • CappedCount — (Integer)

              The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

            • CapExceeded — (Boolean)

              Indicates whether the maximum count is reached.

          • ComplianceSummaryTimestamp — (Date)

            The time that AWS Config created the compliance summary.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getConformancePackComplianceDetails(params = {}, callback) ⇒ AWS.Request

Returns compliance details of a conformance pack for all AWS resources that are monitered by conformance pack.

Examples:

Calling the getConformancePackComplianceDetails operation

var params = {
  ConformancePackName: 'STRING_VALUE', /* required */
  Filters: {
    ComplianceType: COMPLIANT | NON_COMPLIANT,
    ConfigRuleNames: [
      'STRING_VALUE',
      /* more items */
    ],
    ResourceIds: [
      'STRING_VALUE',
      /* more items */
    ],
    ResourceType: 'STRING_VALUE'
  },
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getConformancePackComplianceDetails(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConformancePackName — (String)

      Name of the conformance pack.

    • Filters — (map)

      A ConformancePackEvaluationFilters object.

      • ConfigRuleNames — (Array<String>)

        Filters the results by AWS Config rule names.

      • ComplianceType — (String)

        Filters the results by compliance.

        The allowed values are COMPLIANT and NON_COMPLIANT.

        Possible values include:
        • "COMPLIANT"
        • "NON_COMPLIANT"
      • ResourceType — (String)

        Filters the results by the resource type (for example, "AWS::EC2::Instance").

      • ResourceIds — (Array<String>)

        Filters the results by resource IDs.

        Note: This is valid only when you provide resource type. If there is no resource type, you will see an error.
    • Limit — (Integer)

      The maximum number of evaluation results returned on each page. If you do no specify a number, AWS Config uses the default. The default is 100.

    • NextToken — (String)

      The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConformancePackName — (String)

        Name of the conformance pack.

      • ConformancePackRuleEvaluationResults — (Array<map>)

        Returns a list of ConformancePackEvaluationResult objects.

        • ComplianceTyperequired — (String)

          The compliance type. The allowed values are COMPLIANT and NON_COMPLIANT.

          Possible values include:
          • "COMPLIANT"
          • "NON_COMPLIANT"
        • EvaluationResultIdentifierrequired — (map)

          Uniquely identifies an evaluation result.

          • EvaluationResultQualifier — (map)

            Identifies an AWS Config rule used to evaluate an AWS resource, and provides the type and ID of the evaluated resource.

            • ConfigRuleName — (String)

              The name of the AWS Config rule that was used in the evaluation.

            • ResourceType — (String)

              The type of AWS resource that was evaluated.

            • ResourceId — (String)

              The ID of the evaluated AWS resource.

          • OrderingTimestamp — (Date)

            The time of the event that triggered the evaluation of your AWS resources. The time can indicate when AWS Config delivered a configuration item change notification, or it can indicate when AWS Config delivered the configuration snapshot, depending on which event triggered the evaluation.

        • ConfigRuleInvokedTimerequired — (Date)

          The time when AWS Config rule evaluated AWS resource.

        • ResultRecordedTimerequired — (Date)

          The time when AWS Config recorded the evaluation result.

        • Annotation — (String)

          Supplementary information about how the evaluation determined the compliance.

      • NextToken — (String)

        The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getConformancePackComplianceSummary(params = {}, callback) ⇒ AWS.Request

Returns compliance details for the conformance pack based on the cumulative compliance results of all the rules in that conformance pack.

Examples:

Calling the getConformancePackComplianceSummary operation

var params = {
  ConformancePackNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getConformancePackComplianceSummary(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConformancePackNames — (Array<String>)

      Names of conformance packs.

    • Limit — (Integer)

      The maximum number of conformance packs returned on each page.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConformancePackComplianceSummaryList — (Array<map>)

        A list of ConformancePackComplianceSummary objects.

        • ConformancePackNamerequired — (String)

          The name of the conformance pack name.

        • ConformancePackComplianceStatusrequired — (String)

          The status of the conformance pack. The allowed values are COMPLIANT and NON_COMPLIANT.

          Possible values include:
          • "COMPLIANT"
          • "NON_COMPLIANT"
      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDiscoveredResourceCounts(params = {}, callback) ⇒ AWS.Request

Returns the resource types, the number of each resource type, and the total number of resources that AWS Config is recording in this region for your AWS account.

Example

  1. AWS Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets.

  2. You make a call to the GetDiscoveredResourceCounts action and specify that you want all resource types.

  3. AWS Config returns the following:

    • The resource types (EC2 instances, IAM users, and S3 buckets).

    • The number of each resource type (25, 20, and 15).

    • The total number of all resources (60).

The response is paginated. By default, AWS Config lists 100 ResourceCount objects on each page. You can customize this number with the limit parameter. The response includes a nextToken string. To get the next page of results, run the request again and specify the string for the nextToken parameter.

Note: If you make a call to the GetDiscoveredResourceCounts action, you might not immediately receive resource counts in the following situations:
  • You are a new AWS Config customer.
  • You just enabled resource recording.
It might take a few minutes for AWS Config to record and count your resources. Wait a few minutes and then retry the GetDiscoveredResourceCounts action.

Service Reference:

Examples:

Calling the getDiscoveredResourceCounts operation

var params = {
  limit: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  resourceTypes: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.getDiscoveredResourceCounts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceTypes — (Array<String>)

      The comma-separated list that specifies the resource types that you want AWS Config to return (for example, "AWS::EC2::Instance", "AWS::IAM::User").

      If a value for resourceTypes is not specified, AWS Config returns all resource types that AWS Config is recording in the region for your account.

      Note: If the configuration recorder is turned off, AWS Config returns an empty list of ResourceCount objects. If the configuration recorder is not recording a specific resource type (for example, S3 buckets), that resource type is not returned in the list of ResourceCount objects.
    • limit — (Integer)

      The maximum number of ResourceCount objects returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

    • nextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • totalDiscoveredResources — (Integer)

        The total number of resources that AWS Config is recording in the region for your account. If you specify resource types in the request, AWS Config returns only the total number of resources for those resource types.

        Example

        1. AWS Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.

        2. You make a call to the GetDiscoveredResourceCounts action and specify the resource type, "AWS::EC2::Instances", in the request.

        3. AWS Config returns 25 for totalDiscoveredResources.

      • resourceCounts — (Array<map>)

        The list of ResourceCount objects. Each object is listed in descending order by the number of resources.

        • resourceType — (String)

          The resource type (for example, "AWS::EC2::Instance").

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • count — (Integer)

          The number of resources.

      • nextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getOrganizationConfigRuleDetailedStatus(params = {}, callback) ⇒ AWS.Request

Returns detailed status for each member account within an organization for a given organization config rule.

Note: Only a master account can call this API.

Examples:

Calling the getOrganizationConfigRuleDetailedStatus operation

var params = {
  OrganizationConfigRuleName: 'STRING_VALUE', /* required */
  Filters: {
    AccountId: 'STRING_VALUE',
    MemberAccountRuleStatus: CREATE_SUCCESSFUL | CREATE_IN_PROGRESS | CREATE_FAILED | DELETE_SUCCESSFUL | DELETE_FAILED | DELETE_IN_PROGRESS | UPDATE_SUCCESSFUL | UPDATE_IN_PROGRESS | UPDATE_FAILED
  },
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getOrganizationConfigRuleDetailedStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConfigRuleName — (String)

      The name of organization config rule for which you want status details for member accounts.

    • Filters — (map)

      A StatusDetailFilters object.

      • AccountId — (String)

        The 12-digit account ID of the member account within an organization.

      • MemberAccountRuleStatus — (String)

        Indicates deployment status for config rule in the member account. When master account calls PutOrganizationConfigRule action for the first time, config rule status is created in the member account. When master account calls PutOrganizationConfigRule action for the second time, config rule status is updated in the member account. Config rule status is deleted when the master account deletes OrganizationConfigRule and disables service access for config-multiaccountsetup.amazonaws.com.

        AWS Config sets the state of the rule to:

        • CREATE_SUCCESSFUL when config rule has been created in the member account.

        • CREATE_IN_PROGRESS when config rule is being created in the member account.

        • CREATE_FAILED when config rule creation has failed in the member account.

        • DELETE_FAILED when config rule deletion has failed in the member account.

        • DELETE_IN_PROGRESS when config rule is being deleted in the member account.

        • DELETE_SUCCESSFUL when config rule has been deleted in the member account.

        • UPDATE_SUCCESSFUL when config rule has been updated in the member account.

        • UPDATE_IN_PROGRESS when config rule is being updated in the member account.

        • UPDATE_FAILED when config rule deletion has failed in the member account.

        Possible values include:
        • "CREATE_SUCCESSFUL"
        • "CREATE_IN_PROGRESS"
        • "CREATE_FAILED"
        • "DELETE_SUCCESSFUL"
        • "DELETE_FAILED"
        • "DELETE_IN_PROGRESS"
        • "UPDATE_SUCCESSFUL"
        • "UPDATE_IN_PROGRESS"
        • "UPDATE_FAILED"
    • Limit — (Integer)

      The maximum number of OrganizationConfigRuleDetailedStatus returned on each page. If you do not specify a number, AWS Config uses the default. The default is 100.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConfigRuleDetailedStatus — (Array<map>)

        A list of MemberAccountStatus objects.

        • AccountIdrequired — (String)

          The 12-digit account ID of a member account.

        • ConfigRuleNamerequired — (String)

          The name of config rule deployed in the member account.

        • MemberAccountRuleStatusrequired — (String)

          Indicates deployment status for config rule in the member account. When master account calls PutOrganizationConfigRule action for the first time, config rule status is created in the member account. When master account calls PutOrganizationConfigRule action for the second time, config rule status is updated in the member account. Config rule status is deleted when the master account deletes OrganizationConfigRule and disables service access for config-multiaccountsetup.amazonaws.com.

          AWS Config sets the state of the rule to:

          • CREATE_SUCCESSFUL when config rule has been created in the member account.

          • CREATE_IN_PROGRESS when config rule is being created in the member account.

          • CREATE_FAILED when config rule creation has failed in the member account.

          • DELETE_FAILED when config rule deletion has failed in the member account.

          • DELETE_IN_PROGRESS when config rule is being deleted in the member account.

          • DELETE_SUCCESSFUL when config rule has been deleted in the member account.

          • UPDATE_SUCCESSFUL when config rule has been updated in the member account.

          • UPDATE_IN_PROGRESS when config rule is being updated in the member account.

          • UPDATE_FAILED when config rule deletion has failed in the member account.

          Possible values include:
          • "CREATE_SUCCESSFUL"
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "DELETE_SUCCESSFUL"
          • "DELETE_FAILED"
          • "DELETE_IN_PROGRESS"
          • "UPDATE_SUCCESSFUL"
          • "UPDATE_IN_PROGRESS"
          • "UPDATE_FAILED"
        • ErrorCode — (String)

          An error code that is returned when config rule creation or deletion failed in the member account.

        • ErrorMessage — (String)

          An error message indicating that config rule account creation or deletion has failed due to an error in the member account.

        • LastUpdateTime — (Date)

          The timestamp of the last status update.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getOrganizationConformancePackDetailedStatus(params = {}, callback) ⇒ AWS.Request

Returns detailed status for each member account within an organization for a given organization conformance pack.

Only a master account can call this API.

Examples:

Calling the getOrganizationConformancePackDetailedStatus operation

var params = {
  OrganizationConformancePackName: 'STRING_VALUE', /* required */
  Filters: {
    AccountId: 'STRING_VALUE',
    Status: CREATE_SUCCESSFUL | CREATE_IN_PROGRESS | CREATE_FAILED | DELETE_SUCCESSFUL | DELETE_FAILED | DELETE_IN_PROGRESS | UPDATE_SUCCESSFUL | UPDATE_IN_PROGRESS | UPDATE_FAILED
  },
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.getOrganizationConformancePackDetailedStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConformancePackName — (String)

      The name of organization conformance pack for which you want status details for member accounts.

    • Filters — (map)

      An OrganizationResourceDetailedStatusFilters object.

      • AccountId — (String)

        The 12-digit account ID of the member account within an organization.

      • Status — (String)

        Indicates deployment status for conformance pack in a member account. When master account calls PutOrganizationConformancePack action for the first time, conformance pack status is created in the member account. When master account calls PutOrganizationConformancePack action for the second time, conformance pack status is updated in the member account. Conformance pack status is deleted when the master account deletes OrganizationConformancePack and disables service access for config-multiaccountsetup.amazonaws.com.

        AWS Config sets the state of the conformance pack to:

        • CREATE_SUCCESSFUL when conformance pack has been created in the member account.

        • CREATE_IN_PROGRESS when conformance pack is being created in the member account.

        • CREATE_FAILED when conformance pack creation has failed in the member account.

        • DELETE_FAILED when conformance pack deletion has failed in the member account.

        • DELETE_IN_PROGRESS when conformance pack is being deleted in the member account.

        • DELETE_SUCCESSFUL when conformance pack has been deleted in the member account.

        • UPDATE_SUCCESSFUL when conformance pack has been updated in the member account.

        • UPDATE_IN_PROGRESS when conformance pack is being updated in the member account.

        • UPDATE_FAILED when conformance pack deletion has failed in the member account.

        Possible values include:
        • "CREATE_SUCCESSFUL"
        • "CREATE_IN_PROGRESS"
        • "CREATE_FAILED"
        • "DELETE_SUCCESSFUL"
        • "DELETE_FAILED"
        • "DELETE_IN_PROGRESS"
        • "UPDATE_SUCCESSFUL"
        • "UPDATE_IN_PROGRESS"
        • "UPDATE_FAILED"
    • Limit — (Integer)

      The maximum number of OrganizationConformancePackDetailedStatuses returned on each page. If you do not specify a number, AWS Config uses the default. The default is 100.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConformancePackDetailedStatuses — (Array<map>)

        A list of OrganizationConformancePackDetailedStatus objects.

        • AccountIdrequired — (String)

          The 12-digit account ID of a member account.

        • ConformancePackNamerequired — (String)

          The name of conformance pack deployed in the member account.

        • Statusrequired — (String)

          Indicates deployment status for conformance pack in a member account. When master account calls PutOrganizationConformancePack action for the first time, conformance pack status is created in the member account. When master account calls PutOrganizationConformancePack action for the second time, conformance pack status is updated in the member account. Conformance pack status is deleted when the master account deletes OrganizationConformancePack and disables service access for config-multiaccountsetup.amazonaws.com.

          AWS Config sets the state of the conformance pack to:

          • CREATE_SUCCESSFUL when conformance pack has been created in the member account.

          • CREATE_IN_PROGRESS when conformance pack is being created in the member account.

          • CREATE_FAILED when conformance pack creation has failed in the member account.

          • DELETE_FAILED when conformance pack deletion has failed in the member account.

          • DELETE_IN_PROGRESS when conformance pack is being deleted in the member account.

          • DELETE_SUCCESSFUL when conformance pack has been deleted in the member account.

          • UPDATE_SUCCESSFUL when conformance pack has been updated in the member account.

          • UPDATE_IN_PROGRESS when conformance pack is being updated in the member account.

          • UPDATE_FAILED when conformance pack deletion has failed in the member account.

          Possible values include:
          • "CREATE_SUCCESSFUL"
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "DELETE_SUCCESSFUL"
          • "DELETE_FAILED"
          • "DELETE_IN_PROGRESS"
          • "UPDATE_SUCCESSFUL"
          • "UPDATE_IN_PROGRESS"
          • "UPDATE_FAILED"
        • ErrorCode — (String)

          An error code that is returned when conformance pack creation or deletion failed in the member account.

        • ErrorMessage — (String)

          An error message indicating that conformance pack account creation or deletion has failed due to an error in the member account.

        • LastUpdateTime — (Date)

          The timestamp of the last status update.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResourceConfigHistory(params = {}, callback) ⇒ AWS.Request

Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval. If you specified a retention period to retain your ConfigurationItems between a minimum of 30 days and a maximum of 7 years (2557 days), AWS Config returns the ConfigurationItems for the specified retention period.

The response is paginated. By default, AWS Config returns a limit of 10 configuration items per page. You can customize this number with the limit parameter. The response includes a nextToken string. To get the next page of results, run the request again and specify the string for the nextToken parameter.

Note: Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified limit. In such cases, you can make another call, using the nextToken.

Service Reference:

Examples:

Calling the getResourceConfigHistory operation

var params = {
  resourceId: 'STRING_VALUE', /* required */
  resourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio, /* required */
  chronologicalOrder: Reverse | Forward,
  earlierTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  laterTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  limit: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
configservice.getResourceConfigHistory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceType — (String)

      The resource type.

      Possible values include:
      • "AWS::EC2::CustomerGateway"
      • "AWS::EC2::EIP"
      • "AWS::EC2::Host"
      • "AWS::EC2::Instance"
      • "AWS::EC2::InternetGateway"
      • "AWS::EC2::NetworkAcl"
      • "AWS::EC2::NetworkInterface"
      • "AWS::EC2::RouteTable"
      • "AWS::EC2::SecurityGroup"
      • "AWS::EC2::Subnet"
      • "AWS::CloudTrail::Trail"
      • "AWS::EC2::Volume"
      • "AWS::EC2::VPC"
      • "AWS::EC2::VPNConnection"
      • "AWS::EC2::VPNGateway"
      • "AWS::EC2::RegisteredHAInstance"
      • "AWS::EC2::NatGateway"
      • "AWS::EC2::EgressOnlyInternetGateway"
      • "AWS::EC2::VPCEndpoint"
      • "AWS::EC2::VPCEndpointService"
      • "AWS::EC2::FlowLog"
      • "AWS::EC2::VPCPeeringConnection"
      • "AWS::IAM::Group"
      • "AWS::IAM::Policy"
      • "AWS::IAM::Role"
      • "AWS::IAM::User"
      • "AWS::ElasticLoadBalancingV2::LoadBalancer"
      • "AWS::ACM::Certificate"
      • "AWS::RDS::DBInstance"
      • "AWS::RDS::DBParameterGroup"
      • "AWS::RDS::DBOptionGroup"
      • "AWS::RDS::DBSubnetGroup"
      • "AWS::RDS::DBSecurityGroup"
      • "AWS::RDS::DBSnapshot"
      • "AWS::RDS::DBCluster"
      • "AWS::RDS::DBClusterParameterGroup"
      • "AWS::RDS::DBClusterSnapshot"
      • "AWS::RDS::EventSubscription"
      • "AWS::S3::Bucket"
      • "AWS::S3::AccountPublicAccessBlock"
      • "AWS::Redshift::Cluster"
      • "AWS::Redshift::ClusterSnapshot"
      • "AWS::Redshift::ClusterParameterGroup"
      • "AWS::Redshift::ClusterSecurityGroup"
      • "AWS::Redshift::ClusterSubnetGroup"
      • "AWS::Redshift::EventSubscription"
      • "AWS::SSM::ManagedInstanceInventory"
      • "AWS::CloudWatch::Alarm"
      • "AWS::CloudFormation::Stack"
      • "AWS::ElasticLoadBalancing::LoadBalancer"
      • "AWS::AutoScaling::AutoScalingGroup"
      • "AWS::AutoScaling::LaunchConfiguration"
      • "AWS::AutoScaling::ScalingPolicy"
      • "AWS::AutoScaling::ScheduledAction"
      • "AWS::DynamoDB::Table"
      • "AWS::CodeBuild::Project"
      • "AWS::WAF::RateBasedRule"
      • "AWS::WAF::Rule"
      • "AWS::WAF::RuleGroup"
      • "AWS::WAF::WebACL"
      • "AWS::WAFRegional::RateBasedRule"
      • "AWS::WAFRegional::Rule"
      • "AWS::WAFRegional::RuleGroup"
      • "AWS::WAFRegional::WebACL"
      • "AWS::CloudFront::Distribution"
      • "AWS::CloudFront::StreamingDistribution"
      • "AWS::Lambda::Alias"
      • "AWS::Lambda::Function"
      • "AWS::ElasticBeanstalk::Application"
      • "AWS::ElasticBeanstalk::ApplicationVersion"
      • "AWS::ElasticBeanstalk::Environment"
      • "AWS::MobileHub::Project"
      • "AWS::XRay::EncryptionConfig"
      • "AWS::SSM::AssociationCompliance"
      • "AWS::SSM::PatchCompliance"
      • "AWS::Shield::Protection"
      • "AWS::ShieldRegional::Protection"
      • "AWS::Config::ResourceCompliance"
      • "AWS::LicenseManager::LicenseConfiguration"
      • "AWS::ApiGateway::DomainName"
      • "AWS::ApiGateway::Method"
      • "AWS::ApiGateway::Stage"
      • "AWS::ApiGateway::RestApi"
      • "AWS::ApiGatewayV2::DomainName"
      • "AWS::ApiGatewayV2::Stage"
      • "AWS::ApiGatewayV2::Api"
      • "AWS::CodePipeline::Pipeline"
      • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
      • "AWS::ServiceCatalog::CloudFormationProduct"
      • "AWS::ServiceCatalog::Portfolio"
    • resourceId — (String)

      The ID of the resource (for example., sg-xxxxxx).

    • laterTime — (Date)

      The time stamp that indicates a later time. If not specified, current time is taken.

    • earlierTime — (Date)

      The time stamp that indicates an earlier time. If not specified, the action returns paginated results that contain configuration items that start when the first configuration item was recorded.

    • chronologicalOrder — (String)

      The chronological order for configuration items listed. By default, the results are listed in reverse chronological order.

      Possible values include:
      • "Reverse"
      • "Forward"
    • limit — (Integer)

      The maximum number of configuration items returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

    • nextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • configurationItems — (Array<map>)

        A list that contains the configuration history of one or more resources.

        • version — (String)

          The version number of the resource configuration.

        • accountId — (String)

          The 12-digit AWS account ID associated with the resource.

        • configurationItemCaptureTime — (Date)

          The time when the configuration recording was initiated.

        • configurationItemStatus — (String)

          The configuration item status.

          Possible values include:
          • "OK"
          • "ResourceDiscovered"
          • "ResourceNotRecorded"
          • "ResourceDeleted"
          • "ResourceDeletedNotRecorded"
        • configurationStateId — (String)

          An identifier that indicates the ordering of the configuration items of a resource.

        • configurationItemMD5Hash — (String)

          Unique MD5 hash that represents the configuration item's state.

          You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

        • arn — (String)

          accoun

        • resourceType — (String)

          The type of AWS resource.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • resourceId — (String)

          The ID of the resource (for example, sg-xxxxxx).

        • resourceName — (String)

          The custom name of the resource, if available.

        • awsRegion — (String)

          The region where the resource resides.

        • availabilityZone — (String)

          The Availability Zone associated with the resource.

        • resourceCreationTime — (Date)

          The time stamp when the resource was created.

        • tags — (map<String>)

          A mapping of key value tags associated with the resource.

        • relatedEvents — (Array<String>)

          A list of CloudTrail event IDs.

          A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What Is AWS CloudTrail.

          An empty field indicates that the current configuration was not initiated by any event. As of Version 1.3, the relatedEvents field is empty. You can access the LookupEvents API in the AWS CloudTrail API Reference to retrieve the events for the resource.

        • relationships — (Array<map>)

          A list of related AWS resources.

          • resourceType — (String)

            The resource type of the related resource.

            Possible values include:
            • "AWS::EC2::CustomerGateway"
            • "AWS::EC2::EIP"
            • "AWS::EC2::Host"
            • "AWS::EC2::Instance"
            • "AWS::EC2::InternetGateway"
            • "AWS::EC2::NetworkAcl"
            • "AWS::EC2::NetworkInterface"
            • "AWS::EC2::RouteTable"
            • "AWS::EC2::SecurityGroup"
            • "AWS::EC2::Subnet"
            • "AWS::CloudTrail::Trail"
            • "AWS::EC2::Volume"
            • "AWS::EC2::VPC"
            • "AWS::EC2::VPNConnection"
            • "AWS::EC2::VPNGateway"
            • "AWS::EC2::RegisteredHAInstance"
            • "AWS::EC2::NatGateway"
            • "AWS::EC2::EgressOnlyInternetGateway"
            • "AWS::EC2::VPCEndpoint"
            • "AWS::EC2::VPCEndpointService"
            • "AWS::EC2::FlowLog"
            • "AWS::EC2::VPCPeeringConnection"
            • "AWS::IAM::Group"
            • "AWS::IAM::Policy"
            • "AWS::IAM::Role"
            • "AWS::IAM::User"
            • "AWS::ElasticLoadBalancingV2::LoadBalancer"
            • "AWS::ACM::Certificate"
            • "AWS::RDS::DBInstance"
            • "AWS::RDS::DBParameterGroup"
            • "AWS::RDS::DBOptionGroup"
            • "AWS::RDS::DBSubnetGroup"
            • "AWS::RDS::DBSecurityGroup"
            • "AWS::RDS::DBSnapshot"
            • "AWS::RDS::DBCluster"
            • "AWS::RDS::DBClusterParameterGroup"
            • "AWS::RDS::DBClusterSnapshot"
            • "AWS::RDS::EventSubscription"
            • "AWS::S3::Bucket"
            • "AWS::S3::AccountPublicAccessBlock"
            • "AWS::Redshift::Cluster"
            • "AWS::Redshift::ClusterSnapshot"
            • "AWS::Redshift::ClusterParameterGroup"
            • "AWS::Redshift::ClusterSecurityGroup"
            • "AWS::Redshift::ClusterSubnetGroup"
            • "AWS::Redshift::EventSubscription"
            • "AWS::SSM::ManagedInstanceInventory"
            • "AWS::CloudWatch::Alarm"
            • "AWS::CloudFormation::Stack"
            • "AWS::ElasticLoadBalancing::LoadBalancer"
            • "AWS::AutoScaling::AutoScalingGroup"
            • "AWS::AutoScaling::LaunchConfiguration"
            • "AWS::AutoScaling::ScalingPolicy"
            • "AWS::AutoScaling::ScheduledAction"
            • "AWS::DynamoDB::Table"
            • "AWS::CodeBuild::Project"
            • "AWS::WAF::RateBasedRule"
            • "AWS::WAF::Rule"
            • "AWS::WAF::RuleGroup"
            • "AWS::WAF::WebACL"
            • "AWS::WAFRegional::RateBasedRule"
            • "AWS::WAFRegional::Rule"
            • "AWS::WAFRegional::RuleGroup"
            • "AWS::WAFRegional::WebACL"
            • "AWS::CloudFront::Distribution"
            • "AWS::CloudFront::StreamingDistribution"
            • "AWS::Lambda::Alias"
            • "AWS::Lambda::Function"
            • "AWS::ElasticBeanstalk::Application"
            • "AWS::ElasticBeanstalk::ApplicationVersion"
            • "AWS::ElasticBeanstalk::Environment"
            • "AWS::MobileHub::Project"
            • "AWS::XRay::EncryptionConfig"
            • "AWS::SSM::AssociationCompliance"
            • "AWS::SSM::PatchCompliance"
            • "AWS::Shield::Protection"
            • "AWS::ShieldRegional::Protection"
            • "AWS::Config::ResourceCompliance"
            • "AWS::LicenseManager::LicenseConfiguration"
            • "AWS::ApiGateway::DomainName"
            • "AWS::ApiGateway::Method"
            • "AWS::ApiGateway::Stage"
            • "AWS::ApiGateway::RestApi"
            • "AWS::ApiGatewayV2::DomainName"
            • "AWS::ApiGatewayV2::Stage"
            • "AWS::ApiGatewayV2::Api"
            • "AWS::CodePipeline::Pipeline"
            • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
            • "AWS::ServiceCatalog::CloudFormationProduct"
            • "AWS::ServiceCatalog::Portfolio"
          • resourceId — (String)

            The ID of the related resource (for example, sg-xxxxxx).

          • resourceName — (String)

            The custom name of the related resource, if available.

          • relationshipName — (String)

            The type of relationship with the related resource.

        • configuration — (String)

          The description of the resource configuration.

        • supplementaryConfiguration — (map<String>)

          Configuration attributes that AWS Config returns for certain resource types to supplement the information returned for the configuration parameter.

      • nextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAggregateDiscoveredResources(params = {}, callback) ⇒ AWS.Request

Accepts a resource type and returns a list of resource identifiers that are aggregated for a specific resource type across accounts and regions. A resource identifier includes the resource type, ID, (if available) the custom resource name, source account, and source region. You can narrow the results to include only resources that have specific resource IDs, or a resource name, or source account ID, or source region.

For example, if the input consists of accountID 12345678910 and the region is us-east-1 for resource type AWS::EC2::Instance then the API returns all the EC2 instance identifiers of accountID 12345678910 and region us-east-1.

Examples:

Calling the listAggregateDiscoveredResources operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  ResourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio, /* required */
  Filters: {
    AccountId: 'STRING_VALUE',
    Region: 'STRING_VALUE',
    ResourceId: 'STRING_VALUE',
    ResourceName: 'STRING_VALUE'
  },
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.listAggregateDiscoveredResources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • ResourceType — (String)

      The type of resources that you want AWS Config to list in the response.

      Possible values include:
      • "AWS::EC2::CustomerGateway"
      • "AWS::EC2::EIP"
      • "AWS::EC2::Host"
      • "AWS::EC2::Instance"
      • "AWS::EC2::InternetGateway"
      • "AWS::EC2::NetworkAcl"
      • "AWS::EC2::NetworkInterface"
      • "AWS::EC2::RouteTable"
      • "AWS::EC2::SecurityGroup"
      • "AWS::EC2::Subnet"
      • "AWS::CloudTrail::Trail"
      • "AWS::EC2::Volume"
      • "AWS::EC2::VPC"
      • "AWS::EC2::VPNConnection"
      • "AWS::EC2::VPNGateway"
      • "AWS::EC2::RegisteredHAInstance"
      • "AWS::EC2::NatGateway"
      • "AWS::EC2::EgressOnlyInternetGateway"
      • "AWS::EC2::VPCEndpoint"
      • "AWS::EC2::VPCEndpointService"
      • "AWS::EC2::FlowLog"
      • "AWS::EC2::VPCPeeringConnection"
      • "AWS::IAM::Group"
      • "AWS::IAM::Policy"
      • "AWS::IAM::Role"
      • "AWS::IAM::User"
      • "AWS::ElasticLoadBalancingV2::LoadBalancer"
      • "AWS::ACM::Certificate"
      • "AWS::RDS::DBInstance"
      • "AWS::RDS::DBParameterGroup"
      • "AWS::RDS::DBOptionGroup"
      • "AWS::RDS::DBSubnetGroup"
      • "AWS::RDS::DBSecurityGroup"
      • "AWS::RDS::DBSnapshot"
      • "AWS::RDS::DBCluster"
      • "AWS::RDS::DBClusterParameterGroup"
      • "AWS::RDS::DBClusterSnapshot"
      • "AWS::RDS::EventSubscription"
      • "AWS::S3::Bucket"
      • "AWS::S3::AccountPublicAccessBlock"
      • "AWS::Redshift::Cluster"
      • "AWS::Redshift::ClusterSnapshot"
      • "AWS::Redshift::ClusterParameterGroup"
      • "AWS::Redshift::ClusterSecurityGroup"
      • "AWS::Redshift::ClusterSubnetGroup"
      • "AWS::Redshift::EventSubscription"
      • "AWS::SSM::ManagedInstanceInventory"
      • "AWS::CloudWatch::Alarm"
      • "AWS::CloudFormation::Stack"
      • "AWS::ElasticLoadBalancing::LoadBalancer"
      • "AWS::AutoScaling::AutoScalingGroup"
      • "AWS::AutoScaling::LaunchConfiguration"
      • "AWS::AutoScaling::ScalingPolicy"
      • "AWS::AutoScaling::ScheduledAction"
      • "AWS::DynamoDB::Table"
      • "AWS::CodeBuild::Project"
      • "AWS::WAF::RateBasedRule"
      • "AWS::WAF::Rule"
      • "AWS::WAF::RuleGroup"
      • "AWS::WAF::WebACL"
      • "AWS::WAFRegional::RateBasedRule"
      • "AWS::WAFRegional::Rule"
      • "AWS::WAFRegional::RuleGroup"
      • "AWS::WAFRegional::WebACL"
      • "AWS::CloudFront::Distribution"
      • "AWS::CloudFront::StreamingDistribution"
      • "AWS::Lambda::Alias"
      • "AWS::Lambda::Function"
      • "AWS::ElasticBeanstalk::Application"
      • "AWS::ElasticBeanstalk::ApplicationVersion"
      • "AWS::ElasticBeanstalk::Environment"
      • "AWS::MobileHub::Project"
      • "AWS::XRay::EncryptionConfig"
      • "AWS::SSM::AssociationCompliance"
      • "AWS::SSM::PatchCompliance"
      • "AWS::Shield::Protection"
      • "AWS::ShieldRegional::Protection"
      • "AWS::Config::ResourceCompliance"
      • "AWS::LicenseManager::LicenseConfiguration"
      • "AWS::ApiGateway::DomainName"
      • "AWS::ApiGateway::Method"
      • "AWS::ApiGateway::Stage"
      • "AWS::ApiGateway::RestApi"
      • "AWS::ApiGatewayV2::DomainName"
      • "AWS::ApiGatewayV2::Stage"
      • "AWS::ApiGatewayV2::Api"
      • "AWS::CodePipeline::Pipeline"
      • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
      • "AWS::ServiceCatalog::CloudFormationProduct"
      • "AWS::ServiceCatalog::Portfolio"
    • Filters — (map)

      Filters the results based on the ResourceFilters object.

      • AccountId — (String)

        The 12-digit source account ID.

      • ResourceId — (String)

        The ID of the resource.

      • ResourceName — (String)

        The name of the resource.

      • Region — (String)

        The source region.

    • Limit — (Integer)

      The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResourceIdentifiers — (Array<map>)

        Returns a list of ResourceIdentifiers objects.

        • SourceAccountIdrequired — (String)

          The 12-digit account ID of the source account.

        • SourceRegionrequired — (String)

          The source region where data is aggregated.

        • ResourceIdrequired — (String)

          The ID of the AWS resource.

        • ResourceTyperequired — (String)

          The type of the AWS resource.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • ResourceName — (String)

          The name of the AWS resource.

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDiscoveredResources(params = {}, callback) ⇒ AWS.Request

Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.

Note: You can specify either resource IDs or a resource name, but not both, in the same request.

The response is paginated. By default, AWS Config lists 100 resource identifiers on each page. You can customize this number with the limit parameter. The response includes a nextToken string. To get the next page of results, run the request again and specify the string for the nextToken parameter.

Service Reference:

Examples:

Calling the listDiscoveredResources operation

var params = {
  resourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio, /* required */
  includeDeletedResources: true || false,
  limit: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  resourceIds: [
    'STRING_VALUE',
    /* more items */
  ],
  resourceName: 'STRING_VALUE'
};
configservice.listDiscoveredResources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceType — (String)

      The type of resources that you want AWS Config to list in the response.

      Possible values include:
      • "AWS::EC2::CustomerGateway"
      • "AWS::EC2::EIP"
      • "AWS::EC2::Host"
      • "AWS::EC2::Instance"
      • "AWS::EC2::InternetGateway"
      • "AWS::EC2::NetworkAcl"
      • "AWS::EC2::NetworkInterface"
      • "AWS::EC2::RouteTable"
      • "AWS::EC2::SecurityGroup"
      • "AWS::EC2::Subnet"
      • "AWS::CloudTrail::Trail"
      • "AWS::EC2::Volume"
      • "AWS::EC2::VPC"
      • "AWS::EC2::VPNConnection"
      • "AWS::EC2::VPNGateway"
      • "AWS::EC2::RegisteredHAInstance"
      • "AWS::EC2::NatGateway"
      • "AWS::EC2::EgressOnlyInternetGateway"
      • "AWS::EC2::VPCEndpoint"
      • "AWS::EC2::VPCEndpointService"
      • "AWS::EC2::FlowLog"
      • "AWS::EC2::VPCPeeringConnection"
      • "AWS::IAM::Group"
      • "AWS::IAM::Policy"
      • "AWS::IAM::Role"
      • "AWS::IAM::User"
      • "AWS::ElasticLoadBalancingV2::LoadBalancer"
      • "AWS::ACM::Certificate"
      • "AWS::RDS::DBInstance"
      • "AWS::RDS::DBParameterGroup"
      • "AWS::RDS::DBOptionGroup"
      • "AWS::RDS::DBSubnetGroup"
      • "AWS::RDS::DBSecurityGroup"
      • "AWS::RDS::DBSnapshot"
      • "AWS::RDS::DBCluster"
      • "AWS::RDS::DBClusterParameterGroup"
      • "AWS::RDS::DBClusterSnapshot"
      • "AWS::RDS::EventSubscription"
      • "AWS::S3::Bucket"
      • "AWS::S3::AccountPublicAccessBlock"
      • "AWS::Redshift::Cluster"
      • "AWS::Redshift::ClusterSnapshot"
      • "AWS::Redshift::ClusterParameterGroup"
      • "AWS::Redshift::ClusterSecurityGroup"
      • "AWS::Redshift::ClusterSubnetGroup"
      • "AWS::Redshift::EventSubscription"
      • "AWS::SSM::ManagedInstanceInventory"
      • "AWS::CloudWatch::Alarm"
      • "AWS::CloudFormation::Stack"
      • "AWS::ElasticLoadBalancing::LoadBalancer"
      • "AWS::AutoScaling::AutoScalingGroup"
      • "AWS::AutoScaling::LaunchConfiguration"
      • "AWS::AutoScaling::ScalingPolicy"
      • "AWS::AutoScaling::ScheduledAction"
      • "AWS::DynamoDB::Table"
      • "AWS::CodeBuild::Project"
      • "AWS::WAF::RateBasedRule"
      • "AWS::WAF::Rule"
      • "AWS::WAF::RuleGroup"
      • "AWS::WAF::WebACL"
      • "AWS::WAFRegional::RateBasedRule"
      • "AWS::WAFRegional::Rule"
      • "AWS::WAFRegional::RuleGroup"
      • "AWS::WAFRegional::WebACL"
      • "AWS::CloudFront::Distribution"
      • "AWS::CloudFront::StreamingDistribution"
      • "AWS::Lambda::Alias"
      • "AWS::Lambda::Function"
      • "AWS::ElasticBeanstalk::Application"
      • "AWS::ElasticBeanstalk::ApplicationVersion"
      • "AWS::ElasticBeanstalk::Environment"
      • "AWS::MobileHub::Project"
      • "AWS::XRay::EncryptionConfig"
      • "AWS::SSM::AssociationCompliance"
      • "AWS::SSM::PatchCompliance"
      • "AWS::Shield::Protection"
      • "AWS::ShieldRegional::Protection"
      • "AWS::Config::ResourceCompliance"
      • "AWS::LicenseManager::LicenseConfiguration"
      • "AWS::ApiGateway::DomainName"
      • "AWS::ApiGateway::Method"
      • "AWS::ApiGateway::Stage"
      • "AWS::ApiGateway::RestApi"
      • "AWS::ApiGatewayV2::DomainName"
      • "AWS::ApiGatewayV2::Stage"
      • "AWS::ApiGatewayV2::Api"
      • "AWS::CodePipeline::Pipeline"
      • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
      • "AWS::ServiceCatalog::CloudFormationProduct"
      • "AWS::ServiceCatalog::Portfolio"
    • resourceIds — (Array<String>)

      The IDs of only those resources that you want AWS Config to list in the response. If you do not specify this parameter, AWS Config lists all resources of the specified type that it has discovered.

    • resourceName — (String)

      The custom name of only those resources that you want AWS Config to list in the response. If you do not specify this parameter, AWS Config lists all resources of the specified type that it has discovered.

    • limit — (Integer)

      The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

    • includeDeletedResources — (Boolean)

      Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.

    • nextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • resourceIdentifiers — (Array<map>)

        The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.

        • resourceType — (String)

          The type of resource.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • resourceId — (String)

          The ID of the resource (for example, sg-xxxxxx).

        • resourceName — (String)

          The custom name of the resource (if available).

        • resourceDeletionTime — (Date)

          The time that the resource was deleted.

      • nextToken — (String)

        The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

List the tags for AWS Config resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the supported resources are ConfigRule, ConfigurationAggregator and AggregatorAuthorization.

    • Limit — (Integer)

      The maximum number of tags returned on each page. The limit maximum is 50. You cannot specify a number greater than 50. If you specify 0, AWS Config uses the default.

    • NextToken — (String)

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        The tags for the resource.

        • Key — (String)

          One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

        • Value — (String)

          The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

      • NextToken — (String)

        The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putAggregationAuthorization(params = {}, callback) ⇒ AWS.Request

Authorizes the aggregator account and region to collect data from the source account and region.

Service Reference:

Examples:

Calling the putAggregationAuthorization operation

var params = {
  AuthorizedAccountId: 'STRING_VALUE', /* required */
  AuthorizedAwsRegion: 'STRING_VALUE', /* required */
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.putAggregationAuthorization(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AuthorizedAccountId — (String)

      The 12-digit account ID of the account authorized to aggregate data.

    • AuthorizedAwsRegion — (String)

      The region authorized to collect aggregated data.

    • Tags — (Array<map>)

      An array of tag object.

      • Key — (String)

        One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

      • Value — (String)

        The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AggregationAuthorization — (map)

        Returns an AggregationAuthorization object.

        • AggregationAuthorizationArn — (String)

          The Amazon Resource Name (ARN) of the aggregation object.

        • AuthorizedAccountId — (String)

          The 12-digit account ID of the account authorized to aggregate data.

        • AuthorizedAwsRegion — (String)

          The region authorized to collect aggregated data.

        • CreationTime — (Date)

          The time stamp when the aggregation authorization was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigRule(params = {}, callback) ⇒ AWS.Request

Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.

You can use this action for custom AWS Config rules and AWS managed Config rules. A custom AWS Config rule is a rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that AWS Config provides.

If you are adding a new custom AWS Config rule, you must first create the AWS Lambda function that the rule invokes to evaluate your resources. When you use the PutConfigRule action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify the ARN for the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

If you are adding an AWS managed Config rule, specify the rule's identifier for the SourceIdentifier key. To reference AWS managed Config rule identifiers, see About AWS Managed Config Rules.

For any new rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are generated by AWS Config for new rules.

If you are updating a rule that you added previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type that you use in this request.

The maximum number of rules that AWS Config supports is 150.

For information about requesting a rule limit increase, see AWS Config Limits in the AWS General Reference Guide.

For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide.

Service Reference:

Examples:

Calling the putConfigRule operation

var params = {
  ConfigRule: { /* required */
    Source: { /* required */
      Owner: CUSTOM_LAMBDA | AWS, /* required */
      SourceIdentifier: 'STRING_VALUE', /* required */
      SourceDetails: [
        {
          EventSource: aws.config,
          MaximumExecutionFrequency: One_Hour | Three_Hours | Six_Hours | Twelve_Hours | TwentyFour_Hours,
          MessageType: ConfigurationItemChangeNotification | ConfigurationSnapshotDeliveryCompleted | ScheduledNotification | OversizedConfigurationItemChangeNotification
        },
        /* more items */
      ]
    },
    ConfigRuleArn: 'STRING_VALUE',
    ConfigRuleId: 'STRING_VALUE',
    ConfigRuleName: 'STRING_VALUE',
    ConfigRuleState: ACTIVE | DELETING | DELETING_RESULTS | EVALUATING,
    CreatedBy: 'STRING_VALUE',
    Description: 'STRING_VALUE',
    InputParameters: 'STRING_VALUE',
    MaximumExecutionFrequency: One_Hour | Three_Hours | Six_Hours | Twelve_Hours | TwentyFour_Hours,
    Scope: {
      ComplianceResourceId: 'STRING_VALUE',
      ComplianceResourceTypes: [
        'STRING_VALUE',
        /* more items */
      ],
      TagKey: 'STRING_VALUE',
      TagValue: 'STRING_VALUE'
    }
  },
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.putConfigRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRule — (map)

      The rule that you want to add to your account.

      • ConfigRuleName — (String)

        The name that you assign to the AWS Config rule. The name is required if you are adding a new rule.

      • ConfigRuleArn — (String)

        The Amazon Resource Name (ARN) of the AWS Config rule.

      • ConfigRuleId — (String)

        The ID of the AWS Config rule.

      • Description — (String)

        The description that you provide for the AWS Config rule.

      • Scope — (map)

        Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.

        • ComplianceResourceTypes — (Array<String>)

          The resource types of only those AWS resources that you want to trigger an evaluation for the rule. You can only specify one type if you also specify a resource ID for ComplianceResourceId.

        • TagKey — (String)

          The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.

        • TagValue — (String)

          The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you specify a value for TagValue, you must also specify a value for TagKey.

        • ComplianceResourceId — (String)

          The ID of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for ComplianceResourceTypes.

      • Sourcerequired — (map)

        Provides the rule owner (AWS or customer), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.

        • Ownerrequired — (String)

          Indicates whether AWS or the customer owns and manages the AWS Config rule.

          Possible values include:
          • "CUSTOM_LAMBDA"
          • "AWS"
        • SourceIdentifierrequired — (String)

          For AWS Config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.

          For custom rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function, such as arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name.

        • SourceDetails — (Array<map>)

          Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.

          • EventSource — (String)

            The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWS resources.

            Possible values include:
            • "aws.config"
          • MessageType — (String)

            The type of notification that triggers AWS Config to run an evaluation for a rule. You can specify the following notification types:

            • ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.

            • OversizedConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.

            • ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency.

            • ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.

            If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects, one for ConfigurationItemChangeNotification and one for OversizedConfigurationItemChangeNotification.

            Possible values include:
            • "ConfigurationItemChangeNotification"
            • "ConfigurationSnapshotDeliveryCompleted"
            • "ScheduledNotification"
            • "OversizedConfigurationItemChangeNotification"
          • MaximumExecutionFrequency — (String)

            The frequency at which you want AWS Config to run evaluations for a custom rule with a periodic trigger. If you specify a value for MaximumExecutionFrequency, then MessageType must use the ScheduledNotification value.

            Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter. Based on the valid value you choose, AWS Config runs evaluations once for each valid value. For example, if you choose Three_Hours, AWS Config runs evaluations once every three hours. In this case, Three_Hours is the frequency of this rule.
            Possible values include:
            • "One_Hour"
            • "Three_Hours"
            • "Six_Hours"
            • "Twelve_Hours"
            • "TwentyFour_Hours"
      • InputParameters — (String)

        A string, in JSON format, that is passed to the AWS Config rule Lambda function.

      • MaximumExecutionFrequency — (String)

        The maximum frequency with which AWS Config runs evaluations for a rule. You can specify a value for MaximumExecutionFrequency when:

        • You are using an AWS managed rule that is triggered at a periodic frequency.

        • Your custom rule is triggered when AWS Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.

        Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
        Possible values include:
        • "One_Hour"
        • "Three_Hours"
        • "Six_Hours"
        • "Twelve_Hours"
        • "TwentyFour_Hours"
      • ConfigRuleState — (String)

        Indicates whether the AWS Config rule is active or is currently being deleted by AWS Config. It can also indicate the evaluation status for the AWS Config rule.

        AWS Config sets the state of the rule to EVALUATING temporarily after you use the StartConfigRulesEvaluation request to evaluate your resources against the AWS Config rule.

        AWS Config sets the state of the rule to DELETING_RESULTS temporarily after you use the DeleteEvaluationResults request to delete the current evaluation results for the AWS Config rule.

        AWS Config temporarily sets the state of a rule to DELETING after you use the DeleteConfigRule request to delete the rule. After AWS Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.

        Possible values include:
        • "ACTIVE"
        • "DELETING"
        • "DELETING_RESULTS"
        • "EVALUATING"
      • CreatedBy — (String)

        Service principal name of the service that created the rule.

        Note: The field is populated only if the service linked rule is created by a service. The field is empty if you create your own rule.
    • Tags — (Array<map>)

      An array of tag object.

      • Key — (String)

        One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

      • Value — (String)

        The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationAggregator(params = {}, callback) ⇒ AWS.Request

Creates and updates the configuration aggregator with the selected source accounts and regions. The source account can be individual account(s) or an organization.

Note: AWS Config should be enabled in source accounts and regions you want to aggregate. If your source type is an organization, you must be signed in to the master account and all features must be enabled in your organization. AWS Config calls EnableAwsServiceAccess API to enable integration between AWS Config and AWS Organizations.

Service Reference:

Examples:

Calling the putConfigurationAggregator operation

var params = {
  ConfigurationAggregatorName: 'STRING_VALUE', /* required */
  AccountAggregationSources: [
    {
      AccountIds: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      AllAwsRegions: true || false,
      AwsRegions: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  OrganizationAggregationSource: {
    RoleArn: 'STRING_VALUE', /* required */
    AllAwsRegions: true || false,
    AwsRegions: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.putConfigurationAggregator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationAggregatorName — (String)

      The name of the configuration aggregator.

    • AccountAggregationSources — (Array<map>)

      A list of AccountAggregationSource object.

      • AccountIdsrequired — (Array<String>)

        The 12-digit account ID of the account being aggregated.

      • AllAwsRegions — (Boolean)

        If true, aggregate existing AWS Config regions and future regions.

      • AwsRegions — (Array<String>)

        The source regions being aggregated.

    • OrganizationAggregationSource — (map)

      An OrganizationAggregationSource object.

      • RoleArnrequired — (String)

        ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

      • AwsRegions — (Array<String>)

        The source regions being aggregated.

      • AllAwsRegions — (Boolean)

        If true, aggregate existing AWS Config regions and future regions.

    • Tags — (Array<map>)

      An array of tag object.

      • Key — (String)

        One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

      • Value — (String)

        The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigurationAggregator — (map)

        Returns a ConfigurationAggregator object.

        • ConfigurationAggregatorName — (String)

          The name of the aggregator.

        • ConfigurationAggregatorArn — (String)

          The Amazon Resource Name (ARN) of the aggregator.

        • AccountAggregationSources — (Array<map>)

          Provides a list of source accounts and regions to be aggregated.

          • AccountIdsrequired — (Array<String>)

            The 12-digit account ID of the account being aggregated.

          • AllAwsRegions — (Boolean)

            If true, aggregate existing AWS Config regions and future regions.

          • AwsRegions — (Array<String>)

            The source regions being aggregated.

        • OrganizationAggregationSource — (map)

          Provides an organization and list of regions to be aggregated.

          • RoleArnrequired — (String)

            ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

          • AwsRegions — (Array<String>)

            The source regions being aggregated.

          • AllAwsRegions — (Boolean)

            If true, aggregate existing AWS Config regions and future regions.

        • CreationTime — (Date)

          The time stamp when the configuration aggregator was created.

        • LastUpdatedTime — (Date)

          The time of the last update.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationRecorder(params = {}, callback) ⇒ AWS.Request

Creates a new configuration recorder to record the selected resource configurations.

You can use this action to change the role roleARN or the recordingGroup of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

Note: Currently, you can specify only one configuration recorder per region in your account. If ConfigurationRecorder does not have the recordingGroup parameter specified, the default is to record all supported resource types.

Service Reference:

Examples:

Calling the putConfigurationRecorder operation

var params = {
  ConfigurationRecorder: { /* required */
    name: 'STRING_VALUE',
    recordingGroup: {
      allSupported: true || false,
      includeGlobalResourceTypes: true || false,
      resourceTypes: [
        AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio,
        /* more items */
      ]
    },
    roleARN: 'STRING_VALUE'
  }
};
configservice.putConfigurationRecorder(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationRecorder — (map)

      The configuration recorder object that records each configuration change made to the resources.

      • name — (String)

        The name of the recorder. By default, AWS Config automatically assigns the name "default" when creating the configuration recorder. You cannot change the assigned name.

      • roleARN — (String)

        Amazon Resource Name (ARN) of the IAM role used to describe the AWS resources associated with the account.

      • recordingGroup — (map)

        Specifies the types of AWS resources for which AWS Config records configuration changes.

        • allSupported — (Boolean)

          Specifies whether AWS Config records configuration changes for every supported type of regional resource.

          If you set this option to true, when AWS Config adds support for a new type of regional resource, it starts recording resources of that type automatically.

          If you set this option to true, you cannot enumerate a list of resourceTypes.

        • includeGlobalResourceTypes — (Boolean)

          Specifies whether AWS Config includes all supported types of global resources (for example, IAM resources) with the resources that it records.

          Before you can set this option to true, you must set the allSupported option to true.

          If you set this option to true, when AWS Config adds support for a new type of global resource, it starts recording resources of that type automatically.

          The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing AWS Config in only one region to record global resources.

        • resourceTypes — (Array<String>)

          A comma-separated list that specifies the types of AWS resources for which AWS Config records configuration changes (for example, AWS::EC2::Instance or AWS::CloudTrail::Trail).

          Before you can set this option to true, you must set the allSupported option to false.

          If you set this option to true, when AWS Config adds support for a new type of resource, it will not record resources of that type unless you manually add that type to your recording group.

          For a list of valid resourceTypes values, see the resourceType Value column in Supported AWS Resource Types.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConformancePack(params = {}, callback) ⇒ AWS.Request

Creates or updates a conformance pack. A conformance pack is a collection of AWS Config rules that can be easily deployed in an account and a region and across AWS Organization.

This API creates a service linked role AWSServiceRoleForConfigConforms in your account. The service linked role is created only when the role does not exist in your account. AWS Config verifies the existence of role with GetRole action.

Note: You must specify either the TemplateS3Uri or the TemplateBody parameter, but not both. If you provide both AWS Config uses the TemplateS3Uri parameter and ignores the TemplateBody parameter.

Service Reference:

Examples:

Calling the putConformancePack operation

var params = {
  ConformancePackName: 'STRING_VALUE', /* required */
  DeliveryS3Bucket: 'STRING_VALUE', /* required */
  ConformancePackInputParameters: [
    {
      ParameterName: 'STRING_VALUE', /* required */
      ParameterValue: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  DeliveryS3KeyPrefix: 'STRING_VALUE',
  TemplateBody: 'STRING_VALUE',
  TemplateS3Uri: 'STRING_VALUE'
};
configservice.putConformancePack(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConformancePackName — (String)

      Name of the conformance pack you want to create.

    • TemplateS3Uri — (String)

      Location of file containing the template body (s3://bucketname/prefix). The uri must point to the conformance pack template (max size: 300 KB) that is located in an Amazon S3 bucket in the same region as the conformance pack.

      Note: You must have access to read Amazon S3 bucket.
    • TemplateBody — (String)

      A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.

      Note: You can only use a YAML template with one resource type, that is, config rule and a remediation action.
    • DeliveryS3Bucket — (String)

      AWS Config stores intermediate files while processing conformance pack template.

    • DeliveryS3KeyPrefix — (String)

      The prefix for the Amazon S3 bucket.

    • ConformancePackInputParameters — (Array<map>)

      A list of ConformancePackInputParameter objects.

      • ParameterNamerequired — (String)

        One part of a key-value pair.

      • ParameterValuerequired — (String)

        Another part of the key-value pair.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConformancePackArn — (String)

        ARN of the conformance pack.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putDeliveryChannel(params = {}, callback) ⇒ AWS.Request

Creates a delivery channel object to deliver configuration information to an Amazon S3 bucket and Amazon SNS topic.

Before you can create a delivery channel, you must create a configuration recorder.

You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

Note: You can have only one delivery channel per region in your account.

Service Reference:

Examples:

Calling the putDeliveryChannel operation

var params = {
  DeliveryChannel: { /* required */
    configSnapshotDeliveryProperties: {
      deliveryFrequency: One_Hour | Three_Hours | Six_Hours | Twelve_Hours | TwentyFour_Hours
    },
    name: 'STRING_VALUE',
    s3BucketName: 'STRING_VALUE',
    s3KeyPrefix: 'STRING_VALUE',
    snsTopicARN: 'STRING_VALUE'
  }
};
configservice.putDeliveryChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DeliveryChannel — (map)

      The configuration delivery channel object that delivers the configuration information to an Amazon S3 bucket and to an Amazon SNS topic.

      • name — (String)

        The name of the delivery channel. By default, AWS Config assigns the name "default" when creating the delivery channel. To change the delivery channel name, you must use the DeleteDeliveryChannel action to delete your current delivery channel, and then you must use the PutDeliveryChannel command to create a delivery channel that has the desired name.

      • s3BucketName — (String)

        The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files.

        If you specify a bucket that belongs to another AWS account, that bucket must have policies that grant access permissions to AWS Config. For more information, see Permissions for the Amazon S3 Bucket in the AWS Config Developer Guide.

      • s3KeyPrefix — (String)

        The prefix for the specified Amazon S3 bucket.

      • snsTopicARN — (String)

        The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.

        If you choose a topic from another account, the topic must have policies that grant access permissions to AWS Config. For more information, see Permissions for the Amazon SNS Topic in the AWS Config Developer Guide.

      • configSnapshotDeliveryProperties — (map)

        The options for how often AWS Config delivers configuration snapshots to the Amazon S3 bucket.

        • deliveryFrequency — (String)

          The frequency with which AWS Config delivers configuration snapshots.

          Possible values include:
          • "One_Hour"
          • "Three_Hours"
          • "Six_Hours"
          • "Twelve_Hours"
          • "TwentyFour_Hours"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putEvaluations(params = {}, callback) ⇒ AWS.Request

Used by an AWS Lambda function to deliver evaluation results to AWS Config. This action is required in every AWS Lambda function that is invoked by an AWS Config rule.

Service Reference:

Examples:

Calling the putEvaluations operation

var params = {
  ResultToken: 'STRING_VALUE', /* required */
  Evaluations: [
    {
      ComplianceResourceId: 'STRING_VALUE', /* required */
      ComplianceResourceType: 'STRING_VALUE', /* required */
      ComplianceType: COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA, /* required */
      OrderingTimestamp: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
      Annotation: 'STRING_VALUE'
    },
    /* more items */
  ],
  TestMode: true || false
};
configservice.putEvaluations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Evaluations — (Array<map>)

      The assessments that the AWS Lambda function performs. Each evaluation identifies an AWS resource and indicates whether it complies with the AWS Config rule that invokes the AWS Lambda function.

      • ComplianceResourceTyperequired — (String)

        The type of AWS resource that was evaluated.

      • ComplianceResourceIdrequired — (String)

        The ID of the AWS resource that was evaluated.

      • ComplianceTyperequired — (String)

        Indicates whether the AWS resource complies with the AWS Config rule that it was evaluated against.

        For the Evaluation data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA value for this data type.

        Similarly, AWS Config does not accept INSUFFICIENT_DATA as the value for ComplianceType from a PutEvaluations request. For example, an AWS Lambda function for a custom AWS Config rule cannot pass an INSUFFICIENT_DATA value to AWS Config.

        Possible values include:
        • "COMPLIANT"
        • "NON_COMPLIANT"
        • "NOT_APPLICABLE"
        • "INSUFFICIENT_DATA"
      • Annotation — (String)

        Supplementary information about how the evaluation determined the compliance.

      • OrderingTimestamprequired — (Date)

        The time of the event in AWS Config that triggered the evaluation. For event-based evaluations, the time indicates when AWS Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when AWS Config triggered the evaluation at the frequency that you specified (for example, every 24 hours).

    • ResultToken — (String)

      An encrypted token that associates an evaluation with an AWS Config rule. Identifies the rule and the event that triggered the evaluation.

    • TestMode — (Boolean)

      Use this parameter to specify a test run for PutEvaluations. You can verify whether your AWS Lambda function will deliver evaluation results to AWS Config. No updates occur to your existing evaluations, and evaluation results are not sent to AWS Config.

      Note: When TestMode is true, PutEvaluations doesn't require a valid value for the ResultToken parameter, but the value cannot be null.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedEvaluations — (Array<map>)

        Requests that failed because of a client or server error.

        • ComplianceResourceTyperequired — (String)

          The type of AWS resource that was evaluated.

        • ComplianceResourceIdrequired — (String)

          The ID of the AWS resource that was evaluated.

        • ComplianceTyperequired — (String)

          Indicates whether the AWS resource complies with the AWS Config rule that it was evaluated against.

          For the Evaluation data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA value for this data type.

          Similarly, AWS Config does not accept INSUFFICIENT_DATA as the value for ComplianceType from a PutEvaluations request. For example, an AWS Lambda function for a custom AWS Config rule cannot pass an INSUFFICIENT_DATA value to AWS Config.

          Possible values include:
          • "COMPLIANT"
          • "NON_COMPLIANT"
          • "NOT_APPLICABLE"
          • "INSUFFICIENT_DATA"
        • Annotation — (String)

          Supplementary information about how the evaluation determined the compliance.

        • OrderingTimestamprequired — (Date)

          The time of the event in AWS Config that triggered the evaluation. For event-based evaluations, the time indicates when AWS Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when AWS Config triggered the evaluation at the frequency that you specified (for example, every 24 hours).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putOrganizationConfigRule(params = {}, callback) ⇒ AWS.Request

Adds or updates organization config rule for your entire organization evaluating whether your AWS resources comply with your desired configurations. Only a master account can create or update an organization config rule.

This API enables organization service access through the EnableAWSServiceAccess action and creates a service linked role AWSServiceRoleForConfigMultiAccountSetup in the master account of your organization. The service linked role is created only when the role does not exist in the master account. AWS Config verifies the existence of role with GetRole action.

You can use this action to create both custom AWS Config rules and AWS managed Config rules. If you are adding a new custom AWS Config rule, you must first create AWS Lambda function in the master account that the rule invokes to evaluate your resources. When you use the PutOrganizationConfigRule action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. If you are adding an AWS managed Config rule, specify the rule's identifier for the RuleIdentifier key.

The maximum number of organization config rules that AWS Config supports is 150.

Note: Specify either OrganizationCustomRuleMetadata or OrganizationManagedRuleMetadata.

Service Reference:

Examples:

Calling the putOrganizationConfigRule operation

var params = {
  OrganizationConfigRuleName: 'STRING_VALUE', /* required */
  ExcludedAccounts: [
    'STRING_VALUE',
    /* more items */
  ],
  OrganizationCustomRuleMetadata: {
    LambdaFunctionArn: 'STRING_VALUE', /* required */
    OrganizationConfigRuleTriggerTypes: [ /* required */
      ConfigurationItemChangeNotification | OversizedConfigurationItemChangeNotification | ScheduledNotification,
      /* more items */
    ],
    Description: 'STRING_VALUE',
    InputParameters: 'STRING_VALUE',
    MaximumExecutionFrequency: One_Hour | Three_Hours | Six_Hours | Twelve_Hours | TwentyFour_Hours,
    ResourceIdScope: 'STRING_VALUE',
    ResourceTypesScope: [
      'STRING_VALUE',
      /* more items */
    ],
    TagKeyScope: 'STRING_VALUE',
    TagValueScope: 'STRING_VALUE'
  },
  OrganizationManagedRuleMetadata: {
    RuleIdentifier: 'STRING_VALUE', /* required */
    Description: 'STRING_VALUE',
    InputParameters: 'STRING_VALUE',
    MaximumExecutionFrequency: One_Hour | Three_Hours | Six_Hours | Twelve_Hours | TwentyFour_Hours,
    ResourceIdScope: 'STRING_VALUE',
    ResourceTypesScope: [
      'STRING_VALUE',
      /* more items */
    ],
    TagKeyScope: 'STRING_VALUE',
    TagValueScope: 'STRING_VALUE'
  }
};
configservice.putOrganizationConfigRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConfigRuleName — (String)

      The name that you assign to an organization config rule.

    • OrganizationManagedRuleMetadata — (map)

      An OrganizationManagedRuleMetadata object.

      • Description — (String)

        The description that you provide for organization config rule.

      • RuleIdentifierrequired — (String)

        For organization config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.

      • InputParameters — (String)

        A string, in JSON format, that is passed to organization config rule Lambda function.

      • MaximumExecutionFrequency — (String)

        The maximum frequency with which AWS Config runs evaluations for a rule. You are using an AWS managed rule that is triggered at a periodic frequency.

        Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
        Possible values include:
        • "One_Hour"
        • "Three_Hours"
        • "Six_Hours"
        • "Twelve_Hours"
        • "TwentyFour_Hours"
      • ResourceTypesScope — (Array<String>)

        The type of the AWS resource that was evaluated.

      • ResourceIdScope — (String)

        The ID of the AWS resource that was evaluated.

      • TagKeyScope — (String)

        One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

      • TagValueScope — (String)

        The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

    • OrganizationCustomRuleMetadata — (map)

      An OrganizationCustomRuleMetadata object.

      • Description — (String)

        The description that you provide for organization config rule.

      • LambdaFunctionArnrequired — (String)

        The lambda function ARN.

      • OrganizationConfigRuleTriggerTypesrequired — (Array<String>)

        The type of notification that triggers AWS Config to run an evaluation for a rule. You can specify the following notification types:

        • ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.

        • OversizedConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.

        • ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency.

      • InputParameters — (String)

        A string, in JSON format, that is passed to organization config rule Lambda function.

      • MaximumExecutionFrequency — (String)

        The maximum frequency with which AWS Config runs evaluations for a rule. Your custom rule is triggered when AWS Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.

        Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
        Possible values include:
        • "One_Hour"
        • "Three_Hours"
        • "Six_Hours"
        • "Twelve_Hours"
        • "TwentyFour_Hours"
      • ResourceTypesScope — (Array<String>)

        The type of the AWS resource that was evaluated.

      • ResourceIdScope — (String)

        The ID of the AWS resource that was evaluated.

      • TagKeyScope — (String)

        One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

      • TagValueScope — (String)

        The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

    • ExcludedAccounts — (Array<String>)

      A comma-separated list of accounts that you want to exclude from an organization config rule.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConfigRuleArn — (String)

        The Amazon Resource Name (ARN) of an organization config rule.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putOrganizationConformancePack(params = {}, callback) ⇒ AWS.Request

Deploys conformance packs across member accounts in an AWS Organization.

This API enables organization service access for config-multiaccountsetup.amazonaws.com through the EnableAWSServiceAccess action and creates a service linked role AWSServiceRoleForConfigMultiAccountSetup in the master account of your organization. The service linked role is created only when the role does not exist in the master account. AWS Config verifies the existence of role with GetRole action.

Note: You must specify either the TemplateS3Uri or the TemplateBody parameter, but not both. If you provide both AWS Config uses the TemplateS3Uri parameter and ignores the TemplateBody parameter. AWS Config sets the state of a conformance pack to CREATE_IN_PROGRESS and UPDATE_IN_PROGRESS until the confomance pack is created or updated. You cannot update a conformance pack while it is in this state. You can create 6 conformance packs with 25 AWS Config rules in each pack.

Service Reference:

Examples:

Calling the putOrganizationConformancePack operation

var params = {
  DeliveryS3Bucket: 'STRING_VALUE', /* required */
  OrganizationConformancePackName: 'STRING_VALUE', /* required */
  ConformancePackInputParameters: [
    {
      ParameterName: 'STRING_VALUE', /* required */
      ParameterValue: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  DeliveryS3KeyPrefix: 'STRING_VALUE',
  ExcludedAccounts: [
    'STRING_VALUE',
    /* more items */
  ],
  TemplateBody: 'STRING_VALUE',
  TemplateS3Uri: 'STRING_VALUE'
};
configservice.putOrganizationConformancePack(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationConformancePackName — (String)

      Name of the organization conformance pack you want to create.

    • TemplateS3Uri — (String)

      Location of file containing the template body. The uri must point to the conformance pack template (max size: 300 KB).

      Note: You must have access to read Amazon S3 bucket.
    • TemplateBody — (String)

      A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.

    • DeliveryS3Bucket — (String)

      Location of an Amazon S3 bucket where AWS Config can deliver evaluation results. AWS Config stores intermediate files while processing conformance pack template.

      The delivery bucket name should start with awsconfigconforms. For example: "Resource": "arn:aws:s3:::your_bucket_name/*". For more information, see Permissions for cross account bucket access.

    • DeliveryS3KeyPrefix — (String)

      The prefix for the Amazon S3 bucket.

    • ConformancePackInputParameters — (Array<map>)

      A list of ConformancePackInputParameter objects.

      • ParameterNamerequired — (String)

        One part of a key-value pair.

      • ParameterValuerequired — (String)

        Another part of the key-value pair.

    • ExcludedAccounts — (Array<String>)

      A list of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationConformancePackArn — (String)

        ARN of the organization conformance pack.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putRemediationConfigurations(params = {}, callback) ⇒ AWS.Request

Adds or updates the remediation configuration with a specific AWS Config rule with the selected target or action. The API creates the RemediationConfiguration object for the AWS Config rule. The AWS Config rule must already exist for you to add a remediation configuration. The target (SSM document) must exist and have permissions to use the target.

Service Reference:

Examples:

Calling the putRemediationConfigurations operation

var params = {
  RemediationConfigurations: [ /* required */
    {
      ConfigRuleName: 'STRING_VALUE', /* required */
      TargetId: 'STRING_VALUE', /* required */
      TargetType: SSM_DOCUMENT, /* required */
      Arn: 'STRING_VALUE',
      Automatic: true || false,
      CreatedByService: 'STRING_VALUE',
      ExecutionControls: {
        SsmControls: {
          ConcurrentExecutionRatePercentage: 'NUMBER_VALUE',
          ErrorPercentage: 'NUMBER_VALUE'
        }
      },
      MaximumAutomaticAttempts: 'NUMBER_VALUE',
      Parameters: {
        '<StringWithCharLimit256>': {
          ResourceValue: {
            Value: RESOURCE_ID /* required */
          },
          StaticValue: {
            Values: [ /* required */
              'STRING_VALUE',
              /* more items */
            ]
          }
        },
        /* '<StringWithCharLimit256>': ... */
      },
      ResourceType: 'STRING_VALUE',
      RetryAttemptSeconds: 'NUMBER_VALUE',
      TargetVersion: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.putRemediationConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • RemediationConfigurations — (Array<map>)

      A list of remediation configuration objects.

      • ConfigRuleNamerequired — (String)

        The name of the AWS Config rule.

      • TargetTyperequired — (String)

        The type of the target. Target executes remediation. For example, SSM document.

        Possible values include:
        • "SSM_DOCUMENT"
      • TargetIdrequired — (String)

        Target ID is the name of the public document.

      • TargetVersion — (String)

        Version of the target. For example, version of the SSM document.

      • Parameters — (map<map>)

        An object of the RemediationParameterValue.

        • ResourceValue — (map)

          The value is dynamic and changes at run-time.

          • Valuerequired — (String)

            The value is a resource ID.

            Possible values include:
            • "RESOURCE_ID"
        • StaticValue — (map)

          The value is static and does not change at run-time.

          • Valuesrequired — (Array<String>)

            A list of values. For example, the ARN of the assumed role.

      • ResourceType — (String)

        The type of a resource.

      • Automatic — (Boolean)

        The remediation is triggered automatically.

      • ExecutionControls — (map)

        An ExecutionControls object.

        • SsmControls — (map)

          A SsmControls object.

          • ConcurrentExecutionRatePercentage — (Integer)

            The maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. You can specify a percentage, such as 10%. The default value is 10.

          • ErrorPercentage — (Integer)

            The percentage of errors that are allowed before SSM stops running automations on non-compliant resources for that specific rule. You can specify a percentage of errors, for example 10%. If you do not specifiy a percentage, the default is 50%. For example, if you set the ErrorPercentage to 40% for 10 non-compliant resources, then SSM stops running the automations when the fifth error is received.

      • MaximumAutomaticAttempts — (Integer)

        The maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5.

        For example, if you specify MaximumAutomaticAttempts as 5 with RetryAttemptsSeconds as 50 seconds, AWS Config throws an exception after the 5th failed attempt within 50 seconds.

      • RetryAttemptSeconds — (Integer)

        Maximum time in seconds that AWS Config runs auto-remediation. If you do not select a number, the default is 60 seconds.

        For example, if you specify RetryAttemptsSeconds as 50 seconds and MaximumAutomaticAttempts as 5, AWS Config will run auto-remediations 5 times within 50 seconds before throwing an exception.

      • Arn — (String)

        Amazon Resource Name (ARN) of remediation configuration.

      • CreatedByService — (String)

        Name of the service that owns the service linked rule, if applicable.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedBatches — (Array<map>)

        Returns a list of failed remediation batch objects.

        • FailureMessage — (String)

          Returns a failure message. For example, the resource is already compliant.

        • FailedItems — (Array<map>)

          Returns remediation configurations of the failed items.

          • ConfigRuleNamerequired — (String)

            The name of the AWS Config rule.

          • TargetTyperequired — (String)

            The type of the target. Target executes remediation. For example, SSM document.

            Possible values include:
            • "SSM_DOCUMENT"
          • TargetIdrequired — (String)

            Target ID is the name of the public document.

          • TargetVersion — (String)

            Version of the target. For example, version of the SSM document.

          • Parameters — (map<map>)

            An object of the RemediationParameterValue.

            • ResourceValue — (map)

              The value is dynamic and changes at run-time.

              • Valuerequired — (String)

                The value is a resource ID.

                Possible values include:
                • "RESOURCE_ID"
            • StaticValue — (map)

              The value is static and does not change at run-time.

              • Valuesrequired — (Array<String>)

                A list of values. For example, the ARN of the assumed role.

          • ResourceType — (String)

            The type of a resource.

          • Automatic — (Boolean)

            The remediation is triggered automatically.

          • ExecutionControls — (map)

            An ExecutionControls object.

            • SsmControls — (map)

              A SsmControls object.

              • ConcurrentExecutionRatePercentage — (Integer)

                The maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. You can specify a percentage, such as 10%. The default value is 10.

              • ErrorPercentage — (Integer)

                The percentage of errors that are allowed before SSM stops running automations on non-compliant resources for that specific rule. You can specify a percentage of errors, for example 10%. If you do not specifiy a percentage, the default is 50%. For example, if you set the ErrorPercentage to 40% for 10 non-compliant resources, then SSM stops running the automations when the fifth error is received.

          • MaximumAutomaticAttempts — (Integer)

            The maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5.

            For example, if you specify MaximumAutomaticAttempts as 5 with RetryAttemptsSeconds as 50 seconds, AWS Config throws an exception after the 5th failed attempt within 50 seconds.

          • RetryAttemptSeconds — (Integer)

            Maximum time in seconds that AWS Config runs auto-remediation. If you do not select a number, the default is 60 seconds.

            For example, if you specify RetryAttemptsSeconds as 50 seconds and MaximumAutomaticAttempts as 5, AWS Config will run auto-remediations 5 times within 50 seconds before throwing an exception.

          • Arn — (String)

            Amazon Resource Name (ARN) of remediation configuration.

          • CreatedByService — (String)

            Name of the service that owns the service linked rule, if applicable.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putRemediationExceptions(params = {}, callback) ⇒ AWS.Request

A remediation exception is when a specific resource is no longer considered for auto-remediation. This API adds a new exception or updates an exisiting exception for a specific resource with a specific AWS Config rule.

Service Reference:

Examples:

Calling the putRemediationExceptions operation

var params = {
  ConfigRuleName: 'STRING_VALUE', /* required */
  ResourceKeys: [ /* required */
    {
      ResourceId: 'STRING_VALUE',
      ResourceType: 'STRING_VALUE'
    },
    /* more items */
  ],
  ExpirationTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  Message: 'STRING_VALUE'
};
configservice.putRemediationExceptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The name of the AWS Config rule for which you want to create remediation exception.

    • ResourceKeys — (Array<map>)

      An exception list of resource exception keys to be processed with the current request. AWS Config adds exception for each resource key. For example, AWS Config adds 3 exceptions for 3 resource keys.

      • ResourceType — (String)

        The type of a resource.

      • ResourceId — (String)

        The ID of the resource (for example., sg-xxxxxx).

    • Message — (String)

      The message contains an explanation of the exception.

    • ExpirationTime — (Date)

      The exception is automatically deleted after the expiration date.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedBatches — (Array<map>)

        Returns a list of failed remediation exceptions batch objects. Each object in the batch consists of a list of failed items and failure messages.

        • FailureMessage — (String)

          Returns a failure message. For example, the auto-remediation has failed.

        • FailedItems — (Array<map>)

          Returns remediation exception resource key object of the failed items.

          • ConfigRuleNamerequired — (String)

            The name of the AWS Config rule.

          • ResourceTyperequired — (String)

            The type of a resource.

          • ResourceIdrequired — (String)

            The ID of the resource (for example., sg-xxxxxx).

          • Message — (String)

            An explanation of an remediation exception.

          • ExpirationTime — (Date)

            The time when the remediation exception will be deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putResourceConfig(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the putResourceConfig operation

var params = {
  Configuration: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE', /* required */
  ResourceType: 'STRING_VALUE', /* required */
  SchemaVersionId: 'STRING_VALUE', /* required */
  ResourceName: 'STRING_VALUE',
  Tags: {
    '<Name>': 'STRING_VALUE',
    /* '<Name>': ... */
  }
};
configservice.putResourceConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceType — (String)

      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 ::.
    • SchemaVersionId — (String)

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

    • ResourceId — (String)

      Unique identifier of the resource.

    • ResourceName — (String)

      Name of the resource.

    • Configuration — (String)

      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.
    • Tags — (map<String>)

      Tags associated with the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putRetentionConfiguration(params = {}, callback) ⇒ AWS.Request

Creates and updates the retention configuration with details about retention period (number of days) that AWS Config stores your historical information. The API creates the RetentionConfiguration object and names the object as default. When you have a RetentionConfiguration object named default, calling the API modifies the default object.

Note: Currently, AWS Config supports only one retention configuration per region in your account.

Service Reference:

Examples:

Calling the putRetentionConfiguration operation

var params = {
  RetentionPeriodInDays: 'NUMBER_VALUE' /* required */
};
configservice.putRetentionConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • RetentionPeriodInDays — (Integer)

      Number of days AWS Config stores your historical information.

      Note: Currently, only applicable to the configuration item history.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RetentionConfiguration — (map)

        Returns a retention configuration object.

        • Namerequired — (String)

          The name of the retention configuration object.

        • RetentionPeriodInDaysrequired — (Integer)

          Number of days AWS Config stores your historical information.

          Note: Currently, only applicable to the configuration item history.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

selectResourceConfig(params = {}, callback) ⇒ AWS.Request

Accepts a structured query language (SQL) SELECT command, performs the corresponding search, and returns resource configurations matching the properties.

For more information about query components, see the Query Components section in the AWS Config Developer Guide.

Service Reference:

Examples:

Calling the selectResourceConfig operation

var params = {
  Expression: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
configservice.selectResourceConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Expression — (String)

      The SQL query SELECT command.

    • Limit — (Integer)

      The maximum number of query results returned on each page.

    • NextToken — (String)

      The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Results — (Array<String>)

        Returns the results for the SQL query.

      • QueryInfo — (map)

        Returns the QueryInfo object.

        • SelectFields — (Array<map>)

          Returns a FieldInfo object.

          • Name — (String)

            Name of the field.

      • NextToken — (String)

        The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startConfigRulesEvaluation(params = {}, callback) ⇒ AWS.Request

Runs an on-demand evaluation for the specified AWS Config rules against the last known configuration state of the resources. Use StartConfigRulesEvaluation when you want to test that a rule you updated is working as expected. StartConfigRulesEvaluation does not re-record the latest configuration state for your resources. It re-runs an evaluation against the last known state of your resources.

You can specify up to 25 AWS Config rules per request.

An existing StartConfigRulesEvaluation call for the specified rules must complete before you can call the API again. If you chose to have AWS Config stream to an Amazon SNS topic, you will receive a ConfigRuleEvaluationStarted notification when the evaluation starts.

Note: You don't need to call the StartConfigRulesEvaluation API to run an evaluation for a new rule. When you create a rule, AWS Config evaluates your resources against the rule automatically.

The StartConfigRulesEvaluation API is useful if you want to run on-demand evaluations, such as the following example:

  1. You have a custom rule that evaluates your IAM resources every 24 hours.

  2. You update your Lambda function to add additional conditions to your rule.

  3. Instead of waiting for the next periodic evaluation, you call the StartConfigRulesEvaluation API.

  4. AWS Config invokes your Lambda function and evaluates your IAM resources.

  5. Your custom rule will still run periodic evaluations every 24 hours.

Service Reference:

Examples:

Calling the startConfigRulesEvaluation operation

var params = {
  ConfigRuleNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.startConfigRulesEvaluation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleNames — (Array<String>)

      The list of names of AWS Config rules that you want to run evaluations for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startConfigurationRecorder(params = {}, callback) ⇒ AWS.Request

Starts recording configurations of the AWS resources you have selected to record in your AWS account.

You must have created at least one delivery channel to successfully start the configuration recorder.

Service Reference:

Examples:

Calling the startConfigurationRecorder operation

var params = {
  ConfigurationRecorderName: 'STRING_VALUE' /* required */
};
configservice.startConfigurationRecorder(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationRecorderName — (String)

      The name of the recorder object that records each configuration change made to the resources.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startRemediationExecution(params = {}, callback) ⇒ AWS.Request

Runs an on-demand remediation for the specified AWS Config rules against the last known remediation configuration. It runs an execution against the current state of your resources. Remediation execution is asynchronous.

You can specify up to 100 resource keys per request. An existing StartRemediationExecution call for the specified resource keys must complete before you can call the API again.

Service Reference:

Examples:

Calling the startRemediationExecution operation

var params = {
  ConfigRuleName: 'STRING_VALUE', /* required */
  ResourceKeys: [ /* required */
    {
      resourceId: 'STRING_VALUE', /* required */
      resourceType: AWS::EC2::CustomerGateway | AWS::EC2::EIP | AWS::EC2::Host | AWS::EC2::Instance | AWS::EC2::InternetGateway | AWS::EC2::NetworkAcl | AWS::EC2::NetworkInterface | AWS::EC2::RouteTable | AWS::EC2::SecurityGroup | AWS::EC2::Subnet | AWS::CloudTrail::Trail | AWS::EC2::Volume | AWS::EC2::VPC | AWS::EC2::VPNConnection | AWS::EC2::VPNGateway | AWS::EC2::RegisteredHAInstance | AWS::EC2::NatGateway | AWS::EC2::EgressOnlyInternetGateway | AWS::EC2::VPCEndpoint | AWS::EC2::VPCEndpointService | AWS::EC2::FlowLog | AWS::EC2::VPCPeeringConnection | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBParameterGroup | AWS::RDS::DBOptionGroup | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | AWS::RDS::DBClusterParameterGroup | AWS::RDS::DBClusterSnapshot | AWS::RDS::EventSubscription | AWS::S3::Bucket | AWS::S3::AccountPublicAccessBlock | AWS::Redshift::Cluster | AWS::Redshift::ClusterSnapshot | AWS::Redshift::ClusterParameterGroup | AWS::Redshift::ClusterSecurityGroup | AWS::Redshift::ClusterSubnetGroup | AWS::Redshift::EventSubscription | AWS::SSM::ManagedInstanceInventory | AWS::CloudWatch::Alarm | AWS::CloudFormation::Stack | AWS::ElasticLoadBalancing::LoadBalancer | AWS::AutoScaling::AutoScalingGroup | AWS::AutoScaling::LaunchConfiguration | AWS::AutoScaling::ScalingPolicy | AWS::AutoScaling::ScheduledAction | AWS::DynamoDB::Table | AWS::CodeBuild::Project | AWS::WAF::RateBasedRule | AWS::WAF::Rule | AWS::WAF::RuleGroup | AWS::WAF::WebACL | AWS::WAFRegional::RateBasedRule | AWS::WAFRegional::Rule | AWS::WAFRegional::RuleGroup | AWS::WAFRegional::WebACL | AWS::CloudFront::Distribution | AWS::CloudFront::StreamingDistribution | AWS::Lambda::Alias | AWS::Lambda::Function | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::MobileHub::Project | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ResourceCompliance | AWS::LicenseManager::LicenseConfiguration | AWS::ApiGateway::DomainName | AWS::ApiGateway::Method | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::DomainName | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio /* required */
    },
    /* more items */
  ]
};
configservice.startRemediationExecution(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigRuleName — (String)

      The list of names of AWS Config rules that you want to run remediation execution for.

    • ResourceKeys — (Array<map>)

      A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.

      • resourceTyperequired — (String)

        The resource type.

        Possible values include:
        • "AWS::EC2::CustomerGateway"
        • "AWS::EC2::EIP"
        • "AWS::EC2::Host"
        • "AWS::EC2::Instance"
        • "AWS::EC2::InternetGateway"
        • "AWS::EC2::NetworkAcl"
        • "AWS::EC2::NetworkInterface"
        • "AWS::EC2::RouteTable"
        • "AWS::EC2::SecurityGroup"
        • "AWS::EC2::Subnet"
        • "AWS::CloudTrail::Trail"
        • "AWS::EC2::Volume"
        • "AWS::EC2::VPC"
        • "AWS::EC2::VPNConnection"
        • "AWS::EC2::VPNGateway"
        • "AWS::EC2::RegisteredHAInstance"
        • "AWS::EC2::NatGateway"
        • "AWS::EC2::EgressOnlyInternetGateway"
        • "AWS::EC2::VPCEndpoint"
        • "AWS::EC2::VPCEndpointService"
        • "AWS::EC2::FlowLog"
        • "AWS::EC2::VPCPeeringConnection"
        • "AWS::IAM::Group"
        • "AWS::IAM::Policy"
        • "AWS::IAM::Role"
        • "AWS::IAM::User"
        • "AWS::ElasticLoadBalancingV2::LoadBalancer"
        • "AWS::ACM::Certificate"
        • "AWS::RDS::DBInstance"
        • "AWS::RDS::DBParameterGroup"
        • "AWS::RDS::DBOptionGroup"
        • "AWS::RDS::DBSubnetGroup"
        • "AWS::RDS::DBSecurityGroup"
        • "AWS::RDS::DBSnapshot"
        • "AWS::RDS::DBCluster"
        • "AWS::RDS::DBClusterParameterGroup"
        • "AWS::RDS::DBClusterSnapshot"
        • "AWS::RDS::EventSubscription"
        • "AWS::S3::Bucket"
        • "AWS::S3::AccountPublicAccessBlock"
        • "AWS::Redshift::Cluster"
        • "AWS::Redshift::ClusterSnapshot"
        • "AWS::Redshift::ClusterParameterGroup"
        • "AWS::Redshift::ClusterSecurityGroup"
        • "AWS::Redshift::ClusterSubnetGroup"
        • "AWS::Redshift::EventSubscription"
        • "AWS::SSM::ManagedInstanceInventory"
        • "AWS::CloudWatch::Alarm"
        • "AWS::CloudFormation::Stack"
        • "AWS::ElasticLoadBalancing::LoadBalancer"
        • "AWS::AutoScaling::AutoScalingGroup"
        • "AWS::AutoScaling::LaunchConfiguration"
        • "AWS::AutoScaling::ScalingPolicy"
        • "AWS::AutoScaling::ScheduledAction"
        • "AWS::DynamoDB::Table"
        • "AWS::CodeBuild::Project"
        • "AWS::WAF::RateBasedRule"
        • "AWS::WAF::Rule"
        • "AWS::WAF::RuleGroup"
        • "AWS::WAF::WebACL"
        • "AWS::WAFRegional::RateBasedRule"
        • "AWS::WAFRegional::Rule"
        • "AWS::WAFRegional::RuleGroup"
        • "AWS::WAFRegional::WebACL"
        • "AWS::CloudFront::Distribution"
        • "AWS::CloudFront::StreamingDistribution"
        • "AWS::Lambda::Alias"
        • "AWS::Lambda::Function"
        • "AWS::ElasticBeanstalk::Application"
        • "AWS::ElasticBeanstalk::ApplicationVersion"
        • "AWS::ElasticBeanstalk::Environment"
        • "AWS::MobileHub::Project"
        • "AWS::XRay::EncryptionConfig"
        • "AWS::SSM::AssociationCompliance"
        • "AWS::SSM::PatchCompliance"
        • "AWS::Shield::Protection"
        • "AWS::ShieldRegional::Protection"
        • "AWS::Config::ResourceCompliance"
        • "AWS::LicenseManager::LicenseConfiguration"
        • "AWS::ApiGateway::DomainName"
        • "AWS::ApiGateway::Method"
        • "AWS::ApiGateway::Stage"
        • "AWS::ApiGateway::RestApi"
        • "AWS::ApiGatewayV2::DomainName"
        • "AWS::ApiGatewayV2::Stage"
        • "AWS::ApiGatewayV2::Api"
        • "AWS::CodePipeline::Pipeline"
        • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
        • "AWS::ServiceCatalog::CloudFormationProduct"
        • "AWS::ServiceCatalog::Portfolio"
      • resourceIdrequired — (String)

        The ID of the resource (for example., sg-xxxxxx).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailureMessage — (String)

        Returns a failure message. For example, the resource is already compliant.

      • FailedItems — (Array<map>)

        For resources that have failed to start execution, the API returns a resource key object.

        • resourceTyperequired — (String)

          The resource type.

          Possible values include:
          • "AWS::EC2::CustomerGateway"
          • "AWS::EC2::EIP"
          • "AWS::EC2::Host"
          • "AWS::EC2::Instance"
          • "AWS::EC2::InternetGateway"
          • "AWS::EC2::NetworkAcl"
          • "AWS::EC2::NetworkInterface"
          • "AWS::EC2::RouteTable"
          • "AWS::EC2::SecurityGroup"
          • "AWS::EC2::Subnet"
          • "AWS::CloudTrail::Trail"
          • "AWS::EC2::Volume"
          • "AWS::EC2::VPC"
          • "AWS::EC2::VPNConnection"
          • "AWS::EC2::VPNGateway"
          • "AWS::EC2::RegisteredHAInstance"
          • "AWS::EC2::NatGateway"
          • "AWS::EC2::EgressOnlyInternetGateway"
          • "AWS::EC2::VPCEndpoint"
          • "AWS::EC2::VPCEndpointService"
          • "AWS::EC2::FlowLog"
          • "AWS::EC2::VPCPeeringConnection"
          • "AWS::IAM::Group"
          • "AWS::IAM::Policy"
          • "AWS::IAM::Role"
          • "AWS::IAM::User"
          • "AWS::ElasticLoadBalancingV2::LoadBalancer"
          • "AWS::ACM::Certificate"
          • "AWS::RDS::DBInstance"
          • "AWS::RDS::DBParameterGroup"
          • "AWS::RDS::DBOptionGroup"
          • "AWS::RDS::DBSubnetGroup"
          • "AWS::RDS::DBSecurityGroup"
          • "AWS::RDS::DBSnapshot"
          • "AWS::RDS::DBCluster"
          • "AWS::RDS::DBClusterParameterGroup"
          • "AWS::RDS::DBClusterSnapshot"
          • "AWS::RDS::EventSubscription"
          • "AWS::S3::Bucket"
          • "AWS::S3::AccountPublicAccessBlock"
          • "AWS::Redshift::Cluster"
          • "AWS::Redshift::ClusterSnapshot"
          • "AWS::Redshift::ClusterParameterGroup"
          • "AWS::Redshift::ClusterSecurityGroup"
          • "AWS::Redshift::ClusterSubnetGroup"
          • "AWS::Redshift::EventSubscription"
          • "AWS::SSM::ManagedInstanceInventory"
          • "AWS::CloudWatch::Alarm"
          • "AWS::CloudFormation::Stack"
          • "AWS::ElasticLoadBalancing::LoadBalancer"
          • "AWS::AutoScaling::AutoScalingGroup"
          • "AWS::AutoScaling::LaunchConfiguration"
          • "AWS::AutoScaling::ScalingPolicy"
          • "AWS::AutoScaling::ScheduledAction"
          • "AWS::DynamoDB::Table"
          • "AWS::CodeBuild::Project"
          • "AWS::WAF::RateBasedRule"
          • "AWS::WAF::Rule"
          • "AWS::WAF::RuleGroup"
          • "AWS::WAF::WebACL"
          • "AWS::WAFRegional::RateBasedRule"
          • "AWS::WAFRegional::Rule"
          • "AWS::WAFRegional::RuleGroup"
          • "AWS::WAFRegional::WebACL"
          • "AWS::CloudFront::Distribution"
          • "AWS::CloudFront::StreamingDistribution"
          • "AWS::Lambda::Alias"
          • "AWS::Lambda::Function"
          • "AWS::ElasticBeanstalk::Application"
          • "AWS::ElasticBeanstalk::ApplicationVersion"
          • "AWS::ElasticBeanstalk::Environment"
          • "AWS::MobileHub::Project"
          • "AWS::XRay::EncryptionConfig"
          • "AWS::SSM::AssociationCompliance"
          • "AWS::SSM::PatchCompliance"
          • "AWS::Shield::Protection"
          • "AWS::ShieldRegional::Protection"
          • "AWS::Config::ResourceCompliance"
          • "AWS::LicenseManager::LicenseConfiguration"
          • "AWS::ApiGateway::DomainName"
          • "AWS::ApiGateway::Method"
          • "AWS::ApiGateway::Stage"
          • "AWS::ApiGateway::RestApi"
          • "AWS::ApiGatewayV2::DomainName"
          • "AWS::ApiGatewayV2::Stage"
          • "AWS::ApiGatewayV2::Api"
          • "AWS::CodePipeline::Pipeline"
          • "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
          • "AWS::ServiceCatalog::CloudFormationProduct"
          • "AWS::ServiceCatalog::Portfolio"
        • resourceIdrequired — (String)

          The ID of the resource (for example., sg-xxxxxx).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopConfigurationRecorder(params = {}, callback) ⇒ AWS.Request

Stops recording configurations of the AWS resources you have selected to record in your AWS account.

Service Reference:

Examples:

Calling the stopConfigurationRecorder operation

var params = {
  ConfigurationRecorderName: 'STRING_VALUE' /* required */
};
configservice.stopConfigurationRecorder(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationRecorderName — (String)

      The name of the recorder object that records each configuration change made to the resources.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
configservice.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the supported resources are ConfigRule, ConfigurationAggregator and AggregatorAuthorization.

    • Tags — (Array<map>)

      An array of tag object.

      • Key — (String)

        One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

      • Value — (String)

        The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Deletes specified tags from a resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
configservice.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the supported resources are ConfigRule, ConfigurationAggregator and AggregatorAuthorization.

    • TagKeys — (Array<String>)

      The keys of the tags to be removed.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.