Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2).
The modular AWS SDK for JavaScript (v3) is now General Available. For more information see the Developer Guide or API Reference.
Class: AWS.ConfigService
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.ConfigService
- 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
-
new AWS.ConfigService(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
batchGetAggregateResourceConfig(params = {}, callback) ⇒ AWS.Request
Returns the current configuration items for resources that are present in your AWS Config aggregator.
-
batchGetResourceConfig(params = {}, callback) ⇒ AWS.Request
Returns the current configuration for one or more requested resources.
-
deleteAggregationAuthorization(params = {}, callback) ⇒ AWS.Request
Deletes the authorization granted to the specified configuration aggregator account in a specified region.
-
deleteConfigRule(params = {}, callback) ⇒ AWS.Request
Deletes the specified AWS Config rule and all of its evaluation results.
-
deleteConfigurationAggregator(params = {}, callback) ⇒ AWS.Request
Deletes the specified configuration aggregator and the aggregated data associated with the aggregator.
-
deleteConfigurationRecorder(params = {}, callback) ⇒ AWS.Request
Deletes the configuration recorder.
-
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.
-
deleteDeliveryChannel(params = {}, callback) ⇒ AWS.Request
Deletes the delivery channel.
-
deleteEvaluationResults(params = {}, callback) ⇒ AWS.Request
Deletes the evaluation results for the specified AWS Config rule.
-
deleteOrganizationConfigRule(params = {}, callback) ⇒ AWS.Request
Deletes the specified organization config rule and all of its evaluation results from all member accounts in that organization.
-
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.
-
deletePendingAggregationRequest(params = {}, callback) ⇒ AWS.Request
Deletes pending authorization requests for a specified aggregator account in a specified region.
-
deleteRemediationConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes the remediation configuration.
-
deleteRemediationExceptions(params = {}, callback) ⇒ AWS.Request
Deletes one or more remediation exceptions mentioned in the resource keys.
-
deleteResourceConfig(params = {}, callback) ⇒ AWS.Request
Records the configuration state for a custom resource that has been deleted.
-
deleteRetentionConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes the retention configuration.
-
deleteStoredQuery(params = {}, callback) ⇒ AWS.Request
Deletes the stored query for a single AWS account and a single AWS Region.
-
deliverConfigSnapshot(params = {}, callback) ⇒ AWS.Request
Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel.
-
describeAggregateComplianceByConfigRules(params = {}, callback) ⇒ AWS.Request
Returns a list of compliant and noncompliant rules with the number of resources for compliant and noncompliant rules.
-
describeAggregateComplianceByConformancePacks(params = {}, callback) ⇒ AWS.Request
Returns a list of the conformance packs and their associated compliance status with the count of compliant and noncompliant AWS Config rules within each conformance pack.
-
describeAggregationAuthorizations(params = {}, callback) ⇒ AWS.Request
Returns a list of authorizations granted to various aggregator accounts and regions.
-
describeComplianceByConfigRule(params = {}, callback) ⇒ AWS.Request
Indicates whether the specified AWS Config rules are compliant.
-
describeComplianceByResource(params = {}, callback) ⇒ AWS.Request
Indicates whether the specified AWS resources are compliant.
-
describeConfigRuleEvaluationStatus(params = {}, callback) ⇒ AWS.Request
Returns status information for each of your AWS managed Config rules.
-
describeConfigRules(params = {}, callback) ⇒ AWS.Request
Returns details about your AWS Config rules.
-
describeConfigurationAggregators(params = {}, callback) ⇒ AWS.Request
Returns the details of one or more configuration aggregators.
-
describeConfigurationAggregatorSourcesStatus(params = {}, callback) ⇒ AWS.Request
Returns status information for sources within an aggregator.
-
describeConfigurationRecorders(params = {}, callback) ⇒ AWS.Request
Returns the details for the specified configuration recorders.
-
describeConfigurationRecorderStatus(params = {}, callback) ⇒ AWS.Request
Returns the current status of the specified configuration recorder.
-
describeConformancePackCompliance(params = {}, callback) ⇒ AWS.Request
Returns compliance details for each rule in that conformance pack.
-
describeConformancePacks(params = {}, callback) ⇒ AWS.Request
Returns a list of one or more conformance packs.
-
describeConformancePackStatus(params = {}, callback) ⇒ AWS.Request
Provides one or more conformance packs deployment status.
-
describeDeliveryChannels(params = {}, callback) ⇒ AWS.Request
Returns details about the specified delivery channel.
-
describeDeliveryChannelStatus(params = {}, callback) ⇒ AWS.Request
Returns the current status of the specified delivery channel.
-
describeOrganizationConfigRules(params = {}, callback) ⇒ AWS.Request
Returns a list of organization config rules.
-
describeOrganizationConfigRuleStatuses(params = {}, callback) ⇒ AWS.Request
Provides organization config rule deployment status for an organization.
-
describeOrganizationConformancePacks(params = {}, callback) ⇒ AWS.Request
Returns a list of organization conformance packs.
-
describeOrganizationConformancePackStatuses(params = {}, callback) ⇒ AWS.Request
Provides organization conformance pack deployment status for an organization.
-
describePendingAggregationRequests(params = {}, callback) ⇒ AWS.Request
Returns a list of all pending aggregation requests.
-
describeRemediationConfigurations(params = {}, callback) ⇒ AWS.Request
Returns the details of one or more remediation configurations.
-
describeRemediationExceptions(params = {}, callback) ⇒ AWS.Request
Returns the details of one or more remediation exceptions.
-
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.
-
describeRetentionConfigurations(params = {}, callback) ⇒ AWS.Request
Returns the details of one or more retention configurations.
-
getAggregateComplianceDetailsByConfigRule(params = {}, callback) ⇒ AWS.Request
Returns the evaluation results for the specified AWS Config rule for a specific resource in a rule.
-
getAggregateConfigRuleComplianceSummary(params = {}, callback) ⇒ AWS.Request
Returns the number of compliant and noncompliant rules for one or more accounts and regions in an aggregator.
-
getAggregateConformancePackComplianceSummary(params = {}, callback) ⇒ AWS.Request
Returns the count of compliant and noncompliant conformance packs across all AWS Accounts and AWS Regions in an aggregator.
-
getAggregateDiscoveredResourceCounts(params = {}, callback) ⇒ AWS.Request
Returns the resource counts across accounts and regions that are present in your AWS Config aggregator.
-
getAggregateResourceConfig(params = {}, callback) ⇒ AWS.Request
Returns configuration item that is aggregated for your specific resource in a specific source account and region.
-
getComplianceDetailsByConfigRule(params = {}, callback) ⇒ AWS.Request
Returns the evaluation results for the specified AWS Config rule.
-
getComplianceDetailsByResource(params = {}, callback) ⇒ AWS.Request
Returns the evaluation results for the specified AWS resource.
-
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.
-
getComplianceSummaryByResourceType(params = {}, callback) ⇒ AWS.Request
Returns the number of resources that are compliant and the number that are noncompliant.
-
getConformancePackComplianceDetails(params = {}, callback) ⇒ AWS.Request
Returns compliance details of a conformance pack for all AWS resources that are monitered by conformance pack.
-
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.
-
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.
-
getOrganizationConfigRuleDetailedStatus(params = {}, callback) ⇒ AWS.Request
Returns detailed status for each member account within an organization for a given organization config rule.
-
getOrganizationConformancePackDetailedStatus(params = {}, callback) ⇒ AWS.Request
Returns detailed status for each member account within an organization for a given organization conformance pack.
-
getResourceConfigHistory(params = {}, callback) ⇒ AWS.Request
Returns a list of configuration items for the specified resource.
-
getStoredQuery(params = {}, callback) ⇒ AWS.Request
Returns the details of a specific stored query.
-
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.
-
listDiscoveredResources(params = {}, callback) ⇒ AWS.Request
Accepts a resource type and returns a list of resource identifiers for the resources of that type.
-
listStoredQueries(params = {}, callback) ⇒ AWS.Request
Lists the stored queries for a single AWS account and a single AWS Region.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
List the tags for AWS Config resource.
-
putAggregationAuthorization(params = {}, callback) ⇒ AWS.Request
Authorizes the aggregator account and region to collect data from the source account and region.
-
putConfigRule(params = {}, callback) ⇒ AWS.Request
Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.
-
putConfigurationAggregator(params = {}, callback) ⇒ AWS.Request
Creates and updates the configuration aggregator with the selected source accounts and regions.
-
putConfigurationRecorder(params = {}, callback) ⇒ AWS.Request
Creates a new configuration recorder to record the selected resource configurations.
-
putConformancePack(params = {}, callback) ⇒ AWS.Request
Creates or updates a conformance pack.
-
putDeliveryChannel(params = {}, callback) ⇒ AWS.Request
Creates a delivery channel object to deliver configuration information to an Amazon S3 bucket and Amazon SNS topic.
-
putEvaluations(params = {}, callback) ⇒ AWS.Request
Used by an AWS Lambda function to deliver evaluation results to AWS Config.
-
putExternalEvaluation(params = {}, callback) ⇒ AWS.Request
Add or updates the evaluations for process checks.
-
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.
-
putOrganizationConformancePack(params = {}, callback) ⇒ AWS.Request
Deploys conformance packs across member accounts in an AWS Organization.
-
putRemediationConfigurations(params = {}, callback) ⇒ AWS.Request
Adds or updates the remediation configuration with a specific AWS Config rule with the selected target or action.
-
putRemediationExceptions(params = {}, callback) ⇒ AWS.Request
A remediation exception is when a specific resource is no longer considered for auto-remediation.
-
putResourceConfig(params = {}, callback) ⇒ AWS.Request
Records the configuration state for the resource provided in the request.
-
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.
-
putStoredQuery(params = {}, callback) ⇒ AWS.Request
Saves a new query or updates an existing saved query.
-
selectAggregateResourceConfig(params = {}, callback) ⇒ AWS.Request
Accepts a structured query language (SQL) SELECT command and an aggregator to query configuration state of AWS resources across multiple accounts and regions, performs the corresponding search, and returns resource configurations matching the properties.
-
selectResourceConfig(params = {}, callback) ⇒ AWS.Request
Accepts a structured query language (SQL) SELECT command, performs the corresponding search, and returns resource configurations matching the properties.
-
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.
-
startConfigurationRecorder(params = {}, callback) ⇒ AWS.Request
Starts recording configurations of the AWS resources you have selected to record in your AWS account.
-
startRemediationExecution(params = {}, callback) ⇒ AWS.Request
Runs an on-demand remediation for the specified AWS Config rules against the last known remediation configuration.
-
stopConfigurationRecorder(params = {}, callback) ⇒ AWS.Request
Stops recording configurations of the AWS resources you have selected to record in your AWS account.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Associates the specified tags to a resource with the specified resourceArn.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Deletes specified tags from a resource.
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|AWS.Endpoint)
—
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'
or an Endpoint object. -
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.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
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 totrue
. -
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. The function is only called for retryable errors.
-
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|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
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
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.
- 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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster, /* 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.
SourceAccountId
— required — (String
)The 12-digit account ID of the source account.
SourceRegion
— required — (String
)The source region where data is aggregated.
ResourceId
— required — (String
)The ID of the AWS resource.
ResourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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. Thedata
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. The valid values are:
-
OK – The resource configuration has been updated
-
ResourceDiscovered – The resource was newly discovered
-
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
-
ResourceDeleted – The resource was deleted
-
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
Note: The CIs do not incur any cost.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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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.
SourceAccountId
— required — (String
)The 12-digit account ID of the source account.
SourceRegion
— required — (String
)The source region where data is aggregated.
ResourceId
— required — (String
)The ID of the AWS resource.
ResourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
ResourceName
— (String
)The name of the AWS resource.
-
(AWS.Response)
—
Returns:
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.
- 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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster /* 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.
resourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
resourceId
— required — (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. Thedata
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. The valid values are:
-
OK – The resource configuration has been updated
-
ResourceDiscovered – The resource was newly discovered
-
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
-
ResourceDeleted – The resource was deleted
-
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
Note: The CIs do not incur any cost.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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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.
resourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
resourceId
— required — (String
)The ID of the resource (for example., sg-xxxxxx).
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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 and a delegated administrator account can delete an organization config rule. When calling this API with a delegated administrator, you must ensure AWS Organizations ListDelegatedAdministrator
permissions are added.
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.
-
(AWS.Response)
—
Returns:
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 or a delegated administrator account can delete an organization conformance pack. When calling this API with a delegated administrator, you must ensure AWS Organizations ListDelegatedAdministrator
permissions are added.
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.
Service Reference:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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. Thedata
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).
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
deleteStoredQuery(params = {}, callback) ⇒ AWS.Request
Deletes the stored query for a single AWS account and a single AWS Region.
Service Reference:
Examples:
Calling the deleteStoredQuery operation
var params = {
QueryName: 'STRING_VALUE' /* required */
};
configservice.deleteStoredQuery(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: {})
—
QueryName
— (String
)The name of the query 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.
-
(AWS.Response)
—
Returns:
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. Thedata
object has the following properties:configSnapshotId
— (String
)The ID of the snapshot that is being created.
-
(AWS.Response)
—
Returns:
describeAggregateComplianceByConfigRules(params = {}, callback) ⇒ AWS.Request
Returns a list of compliant and noncompliant rules with the number of resources for compliant and noncompliant rules.
nextToken
, the results are displayed on the next page. Service Reference:
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
Possible values include:ConfigRuleComplianceFilters
data type, AWS Config supports onlyCOMPLIANT
andNON_COMPLIANT
. AWS Config does not support theNOT_APPLICABLE
and theINSUFFICIENT_DATA
values."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. Thedata
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
Possible values include:Compliance
data type, AWS Config supports onlyCOMPLIANT
,NON_COMPLIANT
, andINSUFFICIENT_DATA
values. AWS Config does not support theNOT_APPLICABLE
value for theCompliance
data type."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.
-
(AWS.Response)
—
Returns:
describeAggregateComplianceByConformancePacks(params = {}, callback) ⇒ AWS.Request
Returns a list of the conformance packs and their associated compliance status with the count of compliant and noncompliant AWS Config rules within each conformance pack. Also returns the total rule count which includes compliant rules, noncompliant rules, and rules that cannot be evaluated due to insufficient data.
nextToken
, the results are displayed on the next page. Service Reference:
Examples:
Calling the describeAggregateComplianceByConformancePacks operation
var params = {
ConfigurationAggregatorName: 'STRING_VALUE', /* required */
Filters: {
AccountId: 'STRING_VALUE',
AwsRegion: 'STRING_VALUE',
ComplianceType: COMPLIANT | NON_COMPLIANT | INSUFFICIENT_DATA,
ConformancePackName: 'STRING_VALUE'
},
Limit: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
configservice.describeAggregateComplianceByConformancePacks(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 result by
AggregateConformancePackComplianceFilters
object.ConformancePackName
— (String
)The name of the conformance pack.
ComplianceType
— (String
)The compliance status of the conformance pack.
Possible values include:"COMPLIANT"
"NON_COMPLIANT"
"INSUFFICIENT_DATA"
AccountId
— (String
)The 12-digit AWS account ID of the source account.
AwsRegion
— (String
)The source AWS Region from where the data is aggregated.
Limit
— (Integer
)The maximum number of conformance packs compliance details 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. Thedata
object has the following properties:AggregateComplianceByConformancePacks
— (Array<map>
)Returns the
AggregateComplianceByConformancePack
object.ConformancePackName
— (String
)The name of the conformance pack.
Compliance
— (map
)The compliance status of the conformance pack.
ComplianceType
— (String
)The compliance status of the conformance pack.
Possible values include:"COMPLIANT"
"NON_COMPLIANT"
"INSUFFICIENT_DATA"
CompliantRuleCount
— (Integer
)The number of compliant AWS Config Rules.
NonCompliantRuleCount
— (Integer
)The number of noncompliant AWS Config Rules.
TotalRuleCount
— (Integer
)Total number of compliant rules, noncompliant rules, and the rules that do not have any applicable resources to evaluate upon resulting in insufficient data.
AccountId
— (String
)The 12-digit AWS account ID of the source account.
AwsRegion
— (String
)The source AWS 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.
-
(AWS.Response)
—
Returns:
describeAggregationAuthorizations(params = {}, callback) ⇒ AWS.Request
Returns a list of authorizations granted to various aggregator accounts and regions.
Service Reference:
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. Thedata
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.
-
(AWS.Response)
—
Returns:
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 theLastSuccessfulInvocationTime
andLastFailedInvocationTime
. -
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 theconfig: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
andNON_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. Thedata
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
Possible values include:Compliance
data type, AWS Config supports onlyCOMPLIANT
,NON_COMPLIANT
, andINSUFFICIENT_DATA
values. AWS Config does not support theNOT_APPLICABLE
value for theCompliance
data type."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.
-
(AWS.Response)
—
Returns:
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 theLastSuccessfulInvocationTime
andLastFailedInvocationTime
. -
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 theconfig: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 specifyingAWS::::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
, andINSUFFICIENT_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. Thedata
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
Possible values include:Compliance
data type, AWS Config supports onlyCOMPLIANT
,NON_COMPLIANT
, andINSUFFICIENT_DATA
values. AWS Config does not support theNOT_APPLICABLE
value for theCompliance
data type."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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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. Thedata
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.
LastDeactivatedTime
— (Date
)The time that you last turned off 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.
-
(AWS.Response)
—
Returns:
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. Thedata
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.
Note: The scope can be empty.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 forTagKey
.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
.
Source
— required — (map
)Provides the rule owner (AWS or customer), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.
Owner
— required — (String
)Indicates whether AWS or the customer owns and manages the AWS Config rule.
Possible values include:"CUSTOM_LAMBDA"
"AWS"
SourceIdentifier
— required — (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 forMaximumExecutionFrequency
. -
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
Possible values include:ConfigurationItemChangeNotification
and one forOversizedConfigurationItemChangeNotification
."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
, thenMessageType
must use theScheduledNotification
value.Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for thePossible values include:MaximumExecutionFrequency
parameter. Based on the valid value you choose, AWS Config runs evaluations once for each valid value. For example, if you chooseThree_Hours
, AWS Config runs evaluations once every three hours. In this case,Three_Hours
is the frequency of this rule."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 thePossible values include:MaximumExecutionFrequency
parameter."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 theStartConfigRulesEvaluation
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 theDeleteEvaluationResults
request to delete the current evaluation results for the AWS Config rule.AWS Config temporarily sets the state of a rule to
Possible values include:DELETING
after you use theDeleteConfigRule
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."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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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. Thedata
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.
AccountIds
— required — (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.
RoleArn
— required — (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.
CreatedBy
— (String
)AWS service that created the configuration aggregator.
NextToken
— (String
)The
nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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. Thedata
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.
"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.
-
(AWS.Response)
—
Returns:
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.
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. Thedata
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 ofresourceTypes
.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 theallSupported
option totrue
.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
orAWS::CloudTrail::Trail
).To record all configuration changes, you must set the
allSupported
option totrue
.If you set this option to
false
, 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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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. Thedata
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.
-
(AWS.Response)
—
Returns:
describeConformancePackCompliance(params = {}, callback) ⇒ AWS.Request
Returns compliance details for each rule in that conformance pack.
Service Reference:
Examples:
Calling the describeConformancePackCompliance operation
var params = {
ConformancePackName: 'STRING_VALUE', /* required */
Filters: {
ComplianceType: COMPLIANT | NON_COMPLIANT | INSUFFICIENT_DATA,
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
Possible values include:COMPLIANT
andNON_COMPLIANT
.INSUFFICIENT_DATA
is not supported."COMPLIANT"
"NON_COMPLIANT"
"INSUFFICIENT_DATA"
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. Thedata
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
Possible values include:COMPLIANT
,NON_COMPLIANT
, andINSUFFICIENT_DATA
."COMPLIANT"
"NON_COMPLIANT"
"INSUFFICIENT_DATA"
Controls
— (Array<String>
)Controls for the conformance pack. A control is a process to prevent or detect problems while meeting objectives. A control can align with a specific compliance regime or map to internal controls defined by an organization.
NextToken
— (String
)The
nextToken
string returned in a previous request that you use to request the next page of results in a paginated response.
-
(AWS.Response)
—
Returns:
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. Thedata
object has the following properties:ConformancePackDetails
— (Array<map>
)Returns a list of
ConformancePackDetail
objects.ConformancePackName
— required — (String
)Name of the conformance pack.
ConformancePackArn
— required — (String
)Amazon Resource Name (ARN) of the conformance pack.
ConformancePackId
— required — (String
)ID of the conformance pack.
DeliveryS3Bucket
— (String
)Amazon S3 bucket where AWS Config stores conformance pack templates.
Note: This field is optional.DeliveryS3KeyPrefix
— (String
)The prefix for the Amazon S3 bucket.
Note: This field is optional.ConformancePackInputParameters
— (Array<map>
)A list of
ConformancePackInputParameter
objects.ParameterName
— required — (String
)One part of a key-value pair.
ParameterValue
— required — (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.
-
(AWS.Response)
—
Returns:
describeConformancePackStatus(params = {}, callback) ⇒ AWS.Request
Provides one or more conformance packs deployment status.
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. Thedata
object has the following properties:ConformancePackStatusDetails
— (Array<map>
)A list of
ConformancePackStatusDetail
objects.ConformancePackName
— required — (String
)Name of the conformance pack.
ConformancePackId
— required — (String
)ID of the conformance pack.
ConformancePackArn
— required — (String
)Amazon Resource Name (ARN) of comformance pack.
ConformancePackState
— required — (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.
"CREATE_IN_PROGRESS"
"CREATE_COMPLETE"
"CREATE_FAILED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
-
StackArn
— required — (String
)Amazon Resource Name (ARN) of AWS CloudFormation stack.
ConformancePackStatusReason
— (String
)The reason of conformance pack creation failure.
LastUpdateRequestedTime
— required — (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.
-
(AWS.Response)
—
Returns:
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.
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. Thedata
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.
s3KmsKeyArn
— (String
)The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) customer managed key (CMK) used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination 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"
-
(AWS.Response)
—
Returns:
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.
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. Thedata
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.
-
(AWS.Response)
—
Returns:
describeOrganizationConfigRules(params = {}, callback) ⇒ AWS.Request
Returns a list of organization config rules.
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. Thedata
object has the following properties:OrganizationConfigRules
— (Array<map>
)Returns a list of
OrganizationConfigRule
objects.OrganizationConfigRuleName
— required — (String
)The name that you assign to organization config rule.
OrganizationConfigRuleArn
— required — (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.
RuleIdentifier
— required — (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 thePossible values include:MaximumExecutionFrequency
parameter."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.
LambdaFunctionArn
— required — (String
)The lambda function ARN.
OrganizationConfigRuleTriggerTypes
— required — (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 forMaximumExecutionFrequency
.
-
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 thePossible values include:MaximumExecutionFrequency
parameter."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.
-
(AWS.Response)
—
Returns:
describeOrganizationConfigRuleStatuses(params = {}, callback) ⇒ AWS.Request
Provides organization config rule deployment status for an organization.
Service Reference:
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. Thedata
object has the following properties:OrganizationConfigRuleStatuses
— (Array<map>
)A list of
OrganizationConfigRuleStatus
objects.OrganizationConfigRuleName
— required — (String
)The name that you assign to organization config rule.
OrganizationRuleStatus
— required — (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.
"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.
-
(AWS.Response)
—
Returns:
describeOrganizationConformancePacks(params = {}, callback) ⇒ AWS.Request
Returns a list of organization conformance packs.
Service Reference:
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. Thedata
object has the following properties:OrganizationConformancePacks
— (Array<map>
)Returns a list of OrganizationConformancePacks objects.
OrganizationConformancePackName
— required — (String
)The name you assign to an organization conformance pack.
OrganizationConformancePackArn
— required — (String
)Amazon Resource Name (ARN) of organization conformance pack.
DeliveryS3Bucket
— (String
)Amazon S3 bucket where AWS Config stores conformance pack templates.
Note: This field is optional.DeliveryS3KeyPrefix
— (String
)Any folder structure you want to add to an Amazon S3 bucket.
Note: This field is optional.ConformancePackInputParameters
— (Array<map>
)A list of
ConformancePackInputParameter
objects.ParameterName
— required — (String
)One part of a key-value pair.
ParameterValue
— required — (String
)Another part of the key-value pair.
ExcludedAccounts
— (Array<String>
)A comma-separated list of accounts excluded from organization conformance pack.
LastUpdateTime
— required — (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.
-
(AWS.Response)
—
Returns:
describeOrganizationConformancePackStatuses(params = {}, callback) ⇒ AWS.Request
Provides organization conformance pack deployment status for an organization.
Service Reference:
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. Thedata
object has the following properties:OrganizationConformancePackStatuses
— (Array<map>
)A list of
OrganizationConformancePackStatus
objects.OrganizationConformancePackName
— required — (String
)The name that you assign to organization conformance pack.
Status
— required — (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.
"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.
-
(AWS.Response)
—
Returns:
describePendingAggregationRequests(params = {}, callback) ⇒ AWS.Request
Returns a list of all pending aggregation requests.
Service Reference:
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. Thedata
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.
-
(AWS.Response)
—
Returns:
describeRemediationConfigurations(params = {}, callback) ⇒ AWS.Request
Returns the details of one or more remediation configurations.
Service Reference:
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. Thedata
object has the following properties:RemediationConfigurations
— (Array<map>
)Returns a remediation configuration object.
ConfigRuleName
— required — (String
)The name of the AWS Config rule.
TargetType
— required — (String
)The type of the target. Target executes remediation. For example, SSM document.
Possible values include:"SSM_DOCUMENT"
TargetId
— required — (String
)Target ID is the name of the public document.
TargetVersion
— (String
)Version of the target. For example, version of the SSM document.
Note: If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.Parameters
— (map<map>
)An object of the RemediationParameterValue.
ResourceValue
— (map
)The value is dynamic and changes at run-time.
Value
— required — (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.
Values
— required — (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 RetryAttemptSeconds as 50 seconds, AWS Config will put a RemediationException on your behalf for the failing resource 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 RetryAttemptSeconds 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.
-
(AWS.Response)
—
Returns:
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.
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. Thedata
object has the following properties:RemediationExceptions
— (Array<map>
)Returns a list of remediation exception objects.
ConfigRuleName
— required — (String
)The name of the AWS Config rule.
ResourceType
— required — (String
)The type of a resource.
ResourceId
— required — (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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster /* 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.
resourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
resourceId
— required — (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. Thedata
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.
resourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
resourceId
— required — (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.
-
(AWS.Response)
—
Returns:
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.
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. Thedata
object has the following properties:RetentionConfigurations
— (Array<map>
)Returns a retention configuration object.
Name
— required — (String
)The name of the retention configuration object.
RetentionPeriodInDays
— required — (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.
-
(AWS.Response)
—
Returns:
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.
nextToken
, the results are displayed on the next page. Service Reference:
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 thePossible values include:GetAggregateComplianceDetailsByConfigRuleRequest
data type, AWS Config supports only theCOMPLIANT
andNON_COMPLIANT
. AWS Config does not support theNOT_APPLICABLE
andINSUFFICIENT_DATA
values."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. Thedata
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
Possible values include:AggregationEvaluationResult
data type, AWS Config supports only theCOMPLIANT
andNON_COMPLIANT
. AWS Config does not support theNOT_APPLICABLE
andINSUFFICIENT_DATA
value."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.
-
(AWS.Response)
—
Returns:
getAggregateConfigRuleComplianceSummary(params = {}, callback) ⇒ AWS.Request
Returns the number of compliant and noncompliant rules for one or more accounts and regions in an aggregator.
Service Reference:
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. Thedata
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.
-
(AWS.Response)
—
Returns:
getAggregateConformancePackComplianceSummary(params = {}, callback) ⇒ AWS.Request
Returns the count of compliant and noncompliant conformance packs across all AWS Accounts and AWS Regions in an aggregator. You can filter based on AWS Account ID or AWS Region.
Service Reference:
Examples:
Calling the getAggregateConformancePackComplianceSummary 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.getAggregateConformancePackComplianceSummary(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
AggregateConformancePackComplianceSummaryFilters
object.AccountId
— (String
)The 12-digit AWS account ID of the source account.
AwsRegion
— (String
)The source AWS Region from where the data is aggregated.
GroupByKey
— (String
)Groups the result based on AWS Account ID or AWS Region.
Possible values include:"ACCOUNT_ID"
"AWS_REGION"
Limit
— (Integer
)The maximum number of 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. Thedata
object has the following properties:AggregateConformancePackComplianceSummaries
— (Array<map>
)Returns a list of
AggregateConformancePackComplianceSummary
object.ComplianceSummary
— (map
)Returns an
AggregateConformancePackComplianceCount
object.CompliantConformancePackCount
— (Integer
)Number of compliant conformance packs.
NonCompliantConformancePackCount
— (Integer
)Number of noncompliant conformance packs.
GroupName
— (String
)Groups the result based on AWS Account ID or AWS Region.
GroupByKey
— (String
)Groups the result based on AWS Account ID or AWS Region.
NextToken
— (String
)The
nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster
},
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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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. Thedata
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.
GroupName
— required — (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
.ResourceCount
— required — (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.
-
(AWS.Response)
—
Returns:
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster, /* 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.
SourceAccountId
— required — (String
)The 12-digit account ID of the source account.
SourceRegion
— required — (String
)The source region where data is aggregated.
ResourceId
— required — (String
)The ID of the AWS resource.
ResourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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. Thedata
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. The valid values are:
-
OK – The resource configuration has been updated
-
ResourceDiscovered – The resource was newly discovered
-
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
-
ResourceDeleted – The resource was deleted
-
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
Note: The CIs do not incur any cost.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
)Amazon Resource Name (ARN) associated with 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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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
, andNOT_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. Thedata
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
Possible values include:EvaluationResult
data type, AWS Config supports only theCOMPLIANT
,NON_COMPLIANT
, andNOT_APPLICABLE
values. AWS Config does not support theINSUFFICIENT_DATA
value for theEvaluationResult
data type."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.
-
(AWS.Response)
—
Returns:
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
, andNOT_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. Thedata
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
Possible values include:EvaluationResult
data type, AWS Config supports only theCOMPLIANT
,NON_COMPLIANT
, andNOT_APPLICABLE
values. AWS Config does not support theINSUFFICIENT_DATA
value for theEvaluationResult
data type."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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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. Thedata
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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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 specifyingAWS::::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. Thedata
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.
-
(AWS.Response)
—
Returns:
getConformancePackComplianceDetails(params = {}, callback) ⇒ AWS.Request
Returns compliance details of a conformance pack for all AWS resources that are monitered by conformance pack.
Service Reference:
Examples:
Calling the getConformancePackComplianceDetails operation
var params = {
ConformancePackName: 'STRING_VALUE', /* required */
Filters: {
ComplianceType: COMPLIANT | NON_COMPLIANT | INSUFFICIENT_DATA,
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
Possible values include:COMPLIANT
andNON_COMPLIANT
.INSUFFICIENT_DATA
is not supported."COMPLIANT"
"NON_COMPLIANT"
"INSUFFICIENT_DATA"
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. Thedata
object has the following properties:ConformancePackName
— (String
)Name of the conformance pack.
ConformancePackRuleEvaluationResults
— (Array<map>
)Returns a list of
ConformancePackEvaluationResult
objects.ComplianceType
— required — (String
)The compliance type. The allowed values are
Possible values include:COMPLIANT
andNON_COMPLIANT
.INSUFFICIENT_DATA
is not supported."COMPLIANT"
"NON_COMPLIANT"
"INSUFFICIENT_DATA"
EvaluationResultIdentifier
— required — (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.
ConfigRuleInvokedTime
— required — (Date
)The time when AWS Config rule evaluated AWS resource.
ResultRecordedTime
— required — (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.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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. Thedata
object has the following properties:ConformancePackComplianceSummaryList
— (Array<map>
)A list of
ConformancePackComplianceSummary
objects.ConformancePackName
— required — (String
)The name of the conformance pack name.
ConformancePackComplianceStatus
— required — (String
)The status of the conformance pack. The allowed values are
Possible values include:COMPLIANT
,NON_COMPLIANT
andINSUFFICIENT_DATA
."COMPLIANT"
"NON_COMPLIANT"
"INSUFFICIENT_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.
-
(AWS.Response)
—
Returns:
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
-
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.
-
You make a call to the
GetDiscoveredResourceCounts
action and specify that you want all resource types. -
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.
- You are a new AWS Config customer.
- You just enabled resource recording.
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. Thedata
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
-
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.
-
You make a call to the
GetDiscoveredResourceCounts
action and specify the resource type,"AWS::EC2::Instances"
, in the request. -
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,
Possible values include:"AWS::EC2::Instance"
)."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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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.
-
(AWS.Response)
—
Returns:
getOrganizationConfigRuleDetailedStatus(params = {}, callback) ⇒ AWS.Request
Returns detailed status for each member account within an organization for a given organization config rule.
Service Reference:
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 callsPutOrganizationConfigRule
action for the second time, config rule status is updated in the member account. Config rule status is deleted when the master account deletesOrganizationConfigRule
and disables service access forconfig-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.
"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. Thedata
object has the following properties:OrganizationConfigRuleDetailedStatus
— (Array<map>
)A list of
MemberAccountStatus
objects.AccountId
— required — (String
)The 12-digit account ID of a member account.
ConfigRuleName
— required — (String
)The name of config rule deployed in the member account.
MemberAccountRuleStatus
— required — (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 callsPutOrganizationConfigRule
action for the second time, config rule status is updated in the member account. Config rule status is deleted when the master account deletesOrganizationConfigRule
and disables service access forconfig-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.
"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.
-
(AWS.Response)
—
Returns:
getOrganizationConformancePackDetailedStatus(params = {}, callback) ⇒ AWS.Request
Returns detailed status for each member account within an organization for a given organization conformance pack.
Service Reference:
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 callsPutOrganizationConformancePack
action for the second time, conformance pack status is updated in the member account. Conformance pack status is deleted when the master account deletesOrganizationConformancePack
and disables service access forconfig-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.
"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. Thedata
object has the following properties:OrganizationConformancePackDetailedStatuses
— (Array<map>
)A list of
OrganizationConformancePackDetailedStatus
objects.AccountId
— required — (String
)The 12-digit account ID of a member account.
ConformancePackName
— required — (String
)The name of conformance pack deployed in the member account.
Status
— required — (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 callsPutOrganizationConformancePack
action for the second time, conformance pack status is updated in the member account. Conformance pack status is deleted when the master account deletesOrganizationConformancePack
and disables service access forconfig-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.
"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.
-
(AWS.Response)
—
Returns:
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.
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster, /* 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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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. Thedata
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. The valid values are:
-
OK – The resource configuration has been updated
-
ResourceDiscovered – The resource was newly discovered
-
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
-
ResourceDeleted – The resource was deleted
-
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
Note: The CIs do not incur any cost.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
)Amazon Resource Name (ARN) associated with 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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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.
-
(AWS.Response)
—
Returns:
getStoredQuery(params = {}, callback) ⇒ AWS.Request
Returns the details of a specific stored query.
Service Reference:
Examples:
Calling the getStoredQuery operation
var params = {
QueryName: 'STRING_VALUE' /* required */
};
configservice.getStoredQuery(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: {})
—
QueryName
— (String
)The name of the query.
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. Thedata
object has the following properties:StoredQuery
— (map
)Returns a
StoredQuery
object.QueryId
— (String
)The ID of the query.
QueryArn
— (String
)Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
QueryName
— required — (String
)The name of the query.
Description
— (String
)A unique description for the query.
Expression
— (String
)The expression of the query. For example,
SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
-
(AWS.Response)
—
Returns:
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.
Service Reference:
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster, /* 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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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. 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. Thedata
object has the following properties:ResourceIdentifiers
— (Array<map>
)Returns a list of
ResourceIdentifiers
objects.SourceAccountId
— required — (String
)The 12-digit account ID of the source account.
SourceRegion
— required — (String
)The source region where data is aggregated.
ResourceId
— required — (String
)The ID of the AWS resource.
ResourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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.
-
(AWS.Response)
—
Returns:
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.
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster, /* 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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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. Thedata
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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
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.
-
(AWS.Response)
—
Returns:
listStoredQueries(params = {}, callback) ⇒ AWS.Request
Lists the stored queries for a single AWS account and a single AWS Region. The default is 100.
Service Reference:
Examples:
Calling the listStoredQueries operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
configservice.listStoredQueries(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: {})
—
NextToken
— (String
)The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.
MaxResults
— (Integer
)The maximum number of results to be returned with a single call.
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. Thedata
object has the following properties:StoredQueryMetadata
— (Array<map>
)A list of
StoredQueryMetadata
objects.QueryId
— required — (String
)The ID of the query.
QueryArn
— required — (String
)Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
QueryName
— required — (String
)The name of the query.
Description
— (String
)A unique description for the query.
NextToken
— (String
)If the previous paginated request didn't return all of the remaining results, the response object's
NextToken
parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object'sNextToken
parameter. If there are no remaining results, the previous response object'sNextToken
parameter is set tonull
.
-
(AWS.Response)
—
Returns:
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
andAggregatorAuthorization
.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. Thedata
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.
-
(AWS.Response)
—
Returns:
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. Thedata
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.
-
(AWS.Response)
—
Returns:
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.
Note: The scope can be empty.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 forTagKey
.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
.
Source
— required — (map
)Provides the rule owner (AWS or customer), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.
Owner
— required — (String
)Indicates whether AWS or the customer owns and manages the AWS Config rule.
Possible values include:"CUSTOM_LAMBDA"
"AWS"
SourceIdentifier
— required — (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 forMaximumExecutionFrequency
. -
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
Possible values include:ConfigurationItemChangeNotification
and one forOversizedConfigurationItemChangeNotification
."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
, thenMessageType
must use theScheduledNotification
value.Note: By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for thePossible values include:MaximumExecutionFrequency
parameter. Based on the valid value you choose, AWS Config runs evaluations once for each valid value. For example, if you chooseThree_Hours
, AWS Config runs evaluations once every three hours. In this case,Three_Hours
is the frequency of this rule."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 thePossible values include:MaximumExecutionFrequency
parameter."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 theStartConfigRulesEvaluation
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 theDeleteEvaluationResults
request to delete the current evaluation results for the AWS Config rule.AWS Config temporarily sets the state of a rule to
Possible values include:DELETING
after you use theDeleteConfigRule
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."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.
-
(AWS.Response)
—
Returns:
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.
accountIds
that are passed will be replaced with existing accounts. If you want to add additional accounts into the aggregator, call DescribeAggregator
to get the previous accounts and then append new ones.
EnableAwsServiceAccess
API to enable integration between AWS Config and AWS Organizations. If the caller is a registered delegated administrator, AWS Config calls ListDelegatedAdministrators
API to verify whether the caller is a valid delegated administrator. To register a delegated administrator, see Register a Delegated Administrator in the AWS Config developer guide. 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.
AccountIds
— required — (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.
RoleArn
— required — (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. Thedata
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.
AccountIds
— required — (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.
RoleArn
— required — (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.
CreatedBy
— (String
)AWS service that created the configuration aggregator.
-
(AWS.Response)
—
Returns:
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.
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster,
/* 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 ofresourceTypes
.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 theallSupported
option totrue
.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
orAWS::CloudTrail::Trail
).To record all configuration changes, you must set the
allSupported
option totrue
.If you set this option to
false
, 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.
-
(AWS.Response)
—
Returns:
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.
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 */
ConformancePackInputParameters: [
{
ParameterName: 'STRING_VALUE', /* required */
ParameterValue: 'STRING_VALUE' /* required */
},
/* more items */
],
DeliveryS3Bucket: 'STRING_VALUE',
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
)Amazon S3 bucket where AWS Config stores conformance pack templates.
Note: This field is optional.DeliveryS3KeyPrefix
— (String
)The prefix for the Amazon S3 bucket.
Note: This field is optional.ConformancePackInputParameters
— (Array<map>
)A list of
ConformancePackInputParameter
objects.ParameterName
— required — (String
)One part of a key-value pair.
ParameterValue
— required — (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. Thedata
object has the following properties:ConformancePackArn
— (String
)ARN of the conformance pack.
-
(AWS.Response)
—
Returns:
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.
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',
s3KmsKeyArn: '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.
s3KmsKeyArn
— (String
)The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) customer managed key (CMK) used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination 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.
-
(AWS.Response)
—
Returns:
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.
ComplianceResourceType
— required — (String
)The type of AWS resource that was evaluated.
ComplianceResourceId
— required — (String
)The ID of the AWS resource that was evaluated.
ComplianceType
— required — (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 theCOMPLIANT
,NON_COMPLIANT
, andNOT_APPLICABLE
values. AWS Config does not support theINSUFFICIENT_DATA
value for this data type.Similarly, AWS Config does not accept
Possible values include:INSUFFICIENT_DATA
as the value forComplianceType
from aPutEvaluations
request. For example, an AWS Lambda function for a custom AWS Config rule cannot pass anINSUFFICIENT_DATA
value to AWS Config."COMPLIANT"
"NON_COMPLIANT"
"NOT_APPLICABLE"
"INSUFFICIENT_DATA"
Annotation
— (String
)Supplementary information about how the evaluation determined the compliance.
OrderingTimestamp
— required — (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: WhenTestMode
istrue
,PutEvaluations
doesn't require a valid value for theResultToken
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. Thedata
object has the following properties:FailedEvaluations
— (Array<map>
)Requests that failed because of a client or server error.
ComplianceResourceType
— required — (String
)The type of AWS resource that was evaluated.
ComplianceResourceId
— required — (String
)The ID of the AWS resource that was evaluated.
ComplianceType
— required — (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 theCOMPLIANT
,NON_COMPLIANT
, andNOT_APPLICABLE
values. AWS Config does not support theINSUFFICIENT_DATA
value for this data type.Similarly, AWS Config does not accept
Possible values include:INSUFFICIENT_DATA
as the value forComplianceType
from aPutEvaluations
request. For example, an AWS Lambda function for a custom AWS Config rule cannot pass anINSUFFICIENT_DATA
value to AWS Config."COMPLIANT"
"NON_COMPLIANT"
"NOT_APPLICABLE"
"INSUFFICIENT_DATA"
Annotation
— (String
)Supplementary information about how the evaluation determined the compliance.
OrderingTimestamp
— required — (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).
-
(AWS.Response)
—
Returns:
putExternalEvaluation(params = {}, callback) ⇒ AWS.Request
Add or updates the evaluations for process checks. This API checks if the rule is a process check when the name of the AWS Config rule is provided.
Service Reference:
Examples:
Calling the putExternalEvaluation operation
var params = {
ConfigRuleName: 'STRING_VALUE', /* required */
ExternalEvaluation: { /* required */
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'
}
};
configservice.putExternalEvaluation(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.
ExternalEvaluation
— (map
)An
ExternalEvaluation
object that provides details about compliance.ComplianceResourceType
— required — (String
)The evaluated compliance resource type. AWS Config accepts
AWS::::Account
resource type.ComplianceResourceId
— required — (String
)The evaluated compliance resource ID. AWS Config accepts only AWS account ID.
ComplianceType
— required — (String
)The compliance of the AWS resource. The valid values are
Possible values include:COMPLIANT, NON_COMPLIANT,
andNOT_APPLICABLE
."COMPLIANT"
"NON_COMPLIANT"
"NOT_APPLICABLE"
"INSUFFICIENT_DATA"
Annotation
— (String
)Supplementary information about the reason of compliance. For example, this task was completed on a specific date.
OrderingTimestamp
— required — (Date
)The time when the compliance was recorded.
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.
-
(AWS.Response)
—
Returns:
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 and a delegated administrator can create or update an organization config rule. When calling this API with a delegated administrator, you must ensure AWS Organizations ListDelegatedAdministrator
permissions are added.
This API enables organization service access through the EnableAWSServiceAccess
action and creates a service linked role AWSServiceRoleForConfigMultiAccountSetup
in the master or delegated administrator account of your organization. The service linked role is created only when the role does not exist in the caller account. AWS Config verifies the existence of role with GetRole
action.
To use this API with delegated administrator, register a delegated administrator by calling AWS Organization register-delegated-administrator
for config-multiaccountsetup.amazonaws.com
.
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 or a delegated administrator 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 and 3 delegated administrator per organization.
EnableAllFeatures
API to enable all features in an organization. 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.
RuleIdentifier
— required — (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 thePossible values include:MaximumExecutionFrequency
parameter."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.
LambdaFunctionArn
— required — (String
)The lambda function ARN.
OrganizationConfigRuleTriggerTypes
— required — (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 forMaximumExecutionFrequency
.
-
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 thePossible values include:MaximumExecutionFrequency
parameter."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. Thedata
object has the following properties:OrganizationConfigRuleArn
— (String
)The Amazon Resource Name (ARN) of an organization config rule.
-
(AWS.Response)
—
Returns:
putOrganizationConformancePack(params = {}, callback) ⇒ AWS.Request
Deploys conformance packs across member accounts in an AWS Organization.
Only a master account and a delegated administrator can call this API. When calling this API with a delegated administrator, you must ensure AWS Organizations ListDelegatedAdministrator
permissions are added.
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 or delegated administrator account of your organization. The service linked role is created only when the role does not exist in the caller account. To use this API with delegated administrator, register a delegated administrator by calling AWS Organization register-delegate-admin
for config-multiaccountsetup.amazonaws.com
.
EnableAllFeatures
API to enable all features in an organization. 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 conformance pack is created or updated. You cannot update a conformance pack while it is in this state. You can create 50 conformance packs with 25 AWS Config rules in each pack and 3 delegated administrator per organization. Service Reference:
Examples:
Calling the putOrganizationConformancePack operation
var params = {
OrganizationConformancePackName: 'STRING_VALUE', /* required */
ConformancePackInputParameters: [
{
ParameterName: 'STRING_VALUE', /* required */
ParameterValue: 'STRING_VALUE' /* required */
},
/* more items */
],
DeliveryS3Bucket: 'STRING_VALUE',
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
)Amazon S3 bucket where AWS Config stores conformance pack templates.
Note: This field is optional. If used, it must be prefixed withawsconfigconforms
.DeliveryS3KeyPrefix
— (String
)The prefix for the Amazon S3 bucket.
Note: This field is optional.ConformancePackInputParameters
— (Array<map>
)A list of
ConformancePackInputParameter
objects.ParameterName
— required — (String
)One part of a key-value pair.
ParameterValue
— required — (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. Thedata
object has the following properties:OrganizationConformancePackArn
— (String
)ARN of the organization conformance pack.
-
(AWS.Response)
—
Returns:
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.
ConfigRuleName
— required — (String
)The name of the AWS Config rule.
TargetType
— required — (String
)The type of the target. Target executes remediation. For example, SSM document.
Possible values include:"SSM_DOCUMENT"
TargetId
— required — (String
)Target ID is the name of the public document.
TargetVersion
— (String
)Version of the target. For example, version of the SSM document.
Note: If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.Parameters
— (map<map>
)An object of the RemediationParameterValue.
ResourceValue
— (map
)The value is dynamic and changes at run-time.
Value
— required — (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.
Values
— required — (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 RetryAttemptSeconds as 50 seconds, AWS Config will put a RemediationException on your behalf for the failing resource 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 RetryAttemptSeconds 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. Thedata
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.
ConfigRuleName
— required — (String
)The name of the AWS Config rule.
TargetType
— required — (String
)The type of the target. Target executes remediation. For example, SSM document.
Possible values include:"SSM_DOCUMENT"
TargetId
— required — (String
)Target ID is the name of the public document.
TargetVersion
— (String
)Version of the target. For example, version of the SSM document.
Note: If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.Parameters
— (map<map>
)An object of the RemediationParameterValue.
ResourceValue
— (map
)The value is dynamic and changes at run-time.
Value
— required — (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.
Values
— required — (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 RetryAttemptSeconds as 50 seconds, AWS Config will put a RemediationException on your behalf for the failing resource 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 RetryAttemptSeconds 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.
-
(AWS.Response)
—
Returns:
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 existing 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. Thedata
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.
ConfigRuleName
— required — (String
)The name of the AWS Config rule.
ResourceType
— required — (String
)The type of a resource.
ResourceId
— required — (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.
-
(AWS.Response)
—
Returns:
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.
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.
-
(AWS.Response)
—
Returns:
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.
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. Thedata
object has the following properties:RetentionConfiguration
— (map
)Returns a retention configuration object.
Name
— required — (String
)The name of the retention configuration object.
RetentionPeriodInDays
— required — (Integer
)Number of days AWS Config stores your historical information.
Note: Currently, only applicable to the configuration item history.
-
(AWS.Response)
—
Returns:
putStoredQuery(params = {}, callback) ⇒ AWS.Request
Saves a new query or updates an existing saved query. The QueryName
must be unique for a single AWS account and a single AWS Region. You can create upto 300 queries in a single AWS account and a single AWS Region.
Service Reference:
Examples:
Calling the putStoredQuery operation
var params = {
StoredQuery: { /* required */
QueryName: 'STRING_VALUE', /* required */
Description: 'STRING_VALUE',
Expression: 'STRING_VALUE',
QueryArn: 'STRING_VALUE',
QueryId: 'STRING_VALUE'
},
Tags: [
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
]
};
configservice.putStoredQuery(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: {})
—
StoredQuery
— (map
)A list of
StoredQuery
objects. The mandatory fields areQueryName
andExpression
.Note: When you are creating a query, you must provide a query name and an expression. When you are updating a query, you must provide a query name but updating the description is optional.QueryId
— (String
)The ID of the query.
QueryArn
— (String
)Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
QueryName
— required — (String
)The name of the query.
Description
— (String
)A unique description for the query.
Expression
— (String
)The expression of the query. For example,
SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
Tags
— (Array<map>
)A list of
Tags
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. Thedata
object has the following properties:QueryArn
— (String
)Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
-
(AWS.Response)
—
Returns:
selectAggregateResourceConfig(params = {}, callback) ⇒ AWS.Request
Accepts a structured query language (SQL) SELECT command and an aggregator to query configuration state of AWS resources across multiple accounts and regions, 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 selectAggregateResourceConfig operation
var params = {
ConfigurationAggregatorName: 'STRING_VALUE', /* required */
Expression: 'STRING_VALUE', /* required */
Limit: 'NUMBER_VALUE',
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
configservice.selectAggregateResourceConfig(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.
ConfigurationAggregatorName
— (String
)The name of the configuration aggregator.
Limit
— (Integer
)The maximum number of query results returned on each page.
MaxResults
— (Integer
)The maximum number of query results returned on each page. AWS Config also allows the Limit request parameter.
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. Thedata
object has the following properties:Results
— (Array<String>
)Returns the results for the SQL query.
QueryInfo
— (map
)Details about the query.
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.
-
(AWS.Response)
—
Returns:
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. Thedata
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.
-
(AWS.Response)
—
Returns:
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.
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:
-
You have a custom rule that evaluates your IAM resources every 24 hours.
-
You update your Lambda function to add additional conditions to your rule.
-
Instead of waiting for the next periodic evaluation, you call the
StartConfigRulesEvaluation
API. -
AWS Config invokes your Lambda function and evaluates your IAM resources.
-
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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::Elasticsearch::Domain | AWS::IAM::Group | AWS::IAM::Policy | AWS::IAM::Role | AWS::IAM::User | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::ACM::Certificate | AWS::RDS::DBInstance | AWS::RDS::DBSubnetGroup | AWS::RDS::DBSecurityGroup | AWS::RDS::DBSnapshot | AWS::RDS::DBCluster | 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::Function | AWS::NetworkFirewall::Firewall | AWS::NetworkFirewall::FirewallPolicy | AWS::NetworkFirewall::RuleGroup | AWS::ElasticBeanstalk::Application | AWS::ElasticBeanstalk::ApplicationVersion | AWS::ElasticBeanstalk::Environment | AWS::WAFv2::WebACL | AWS::WAFv2::RuleGroup | AWS::WAFv2::IPSet | AWS::WAFv2::RegexPatternSet | AWS::WAFv2::ManagedRuleSet | AWS::XRay::EncryptionConfig | AWS::SSM::AssociationCompliance | AWS::SSM::PatchCompliance | AWS::Shield::Protection | AWS::ShieldRegional::Protection | AWS::Config::ConformancePackCompliance | AWS::Config::ResourceCompliance | AWS::ApiGateway::Stage | AWS::ApiGateway::RestApi | AWS::ApiGatewayV2::Stage | AWS::ApiGatewayV2::Api | AWS::CodePipeline::Pipeline | AWS::ServiceCatalog::CloudFormationProvisionedProduct | AWS::ServiceCatalog::CloudFormationProduct | AWS::ServiceCatalog::Portfolio | AWS::SQS::Queue | AWS::KMS::Key | AWS::QLDB::Ledger | AWS::SecretsManager::Secret | AWS::SNS::Topic | AWS::SSM::FileData | AWS::Backup::BackupPlan | AWS::Backup::BackupSelection | AWS::Backup::BackupVault | AWS::Backup::RecoveryPoint | AWS::ECR::Repository | AWS::ECS::Cluster | AWS::ECS::Service | AWS::ECS::TaskDefinition | AWS::EFS::AccessPoint | AWS::EFS::FileSystem | AWS::EKS::Cluster /* 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.
resourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
resourceId
— required — (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. Thedata
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.
resourceType
— required — (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::Elasticsearch::Domain"
"AWS::IAM::Group"
"AWS::IAM::Policy"
"AWS::IAM::Role"
"AWS::IAM::User"
"AWS::ElasticLoadBalancingV2::LoadBalancer"
"AWS::ACM::Certificate"
"AWS::RDS::DBInstance"
"AWS::RDS::DBSubnetGroup"
"AWS::RDS::DBSecurityGroup"
"AWS::RDS::DBSnapshot"
"AWS::RDS::DBCluster"
"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::Function"
"AWS::NetworkFirewall::Firewall"
"AWS::NetworkFirewall::FirewallPolicy"
"AWS::NetworkFirewall::RuleGroup"
"AWS::ElasticBeanstalk::Application"
"AWS::ElasticBeanstalk::ApplicationVersion"
"AWS::ElasticBeanstalk::Environment"
"AWS::WAFv2::WebACL"
"AWS::WAFv2::RuleGroup"
"AWS::WAFv2::IPSet"
"AWS::WAFv2::RegexPatternSet"
"AWS::WAFv2::ManagedRuleSet"
"AWS::XRay::EncryptionConfig"
"AWS::SSM::AssociationCompliance"
"AWS::SSM::PatchCompliance"
"AWS::Shield::Protection"
"AWS::ShieldRegional::Protection"
"AWS::Config::ConformancePackCompliance"
"AWS::Config::ResourceCompliance"
"AWS::ApiGateway::Stage"
"AWS::ApiGateway::RestApi"
"AWS::ApiGatewayV2::Stage"
"AWS::ApiGatewayV2::Api"
"AWS::CodePipeline::Pipeline"
"AWS::ServiceCatalog::CloudFormationProvisionedProduct"
"AWS::ServiceCatalog::CloudFormationProduct"
"AWS::ServiceCatalog::Portfolio"
"AWS::SQS::Queue"
"AWS::KMS::Key"
"AWS::QLDB::Ledger"
"AWS::SecretsManager::Secret"
"AWS::SNS::Topic"
"AWS::SSM::FileData"
"AWS::Backup::BackupPlan"
"AWS::Backup::BackupSelection"
"AWS::Backup::BackupVault"
"AWS::Backup::RecoveryPoint"
"AWS::ECR::Repository"
"AWS::ECS::Cluster"
"AWS::ECS::Service"
"AWS::ECS::TaskDefinition"
"AWS::EFS::AccessPoint"
"AWS::EFS::FileSystem"
"AWS::EKS::Cluster"
resourceId
— required — (String
)The ID of the resource (for example., sg-xxxxxx).
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
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
andAggregatorAuthorization
.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.
-
(AWS.Response)
—
Returns:
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
andAggregatorAuthorization
.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.
-
(AWS.Response)
—
Returns: