AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the BatchGetConfigurationPolicyAssociations operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.SecurityHub.Model.BatchGetConfigurationPolicyAssociationsResponse

Namespace: Amazon.SecurityHub.Model
Assembly: AWSSDK.SecurityHub.dll
Version: 3.x.y.z

Syntax

C#
public class BatchGetConfigurationPolicyAssociationsResponse : AmazonWebServiceResponse

The BatchGetConfigurationPolicyAssociationsResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ConfigurationPolicyAssociations System.Collections.Generic.List<Amazon.SecurityHub.Model.ConfigurationPolicyAssociationSummary>

Gets and sets the property ConfigurationPolicyAssociations.

Describes associations for the target accounts, OUs, or the root.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property UnprocessedConfigurationPolicyAssociations System.Collections.Generic.List<Amazon.SecurityHub.Model.UnprocessedConfigurationPolicyAssociation>

Gets and sets the property UnprocessedConfigurationPolicyAssociations.

An array of configuration policy associations, one for each configuration policy association identifier, that was specified in the request but couldn’t be processed due to an error.

Examples

This operation provides details about configuration associations for a batch of target accounts, organizational units, or the root.

To get configuration associations for a batch of targets


var client = new AmazonSecurityHubClient();
var response = client.BatchGetConfigurationPolicyAssociations(new BatchGetConfigurationPolicyAssociationsRequest 
{
    ConfigurationPolicyAssociationIdentifiers = new List<ConfigurationPolicyAssociation> {
        new ConfigurationPolicyAssociation { Target = new Target { AccountId = "111122223333" } },
        new ConfigurationPolicyAssociation { Target = new Target { RootId = "r-f6g7h8i9j0example" } }
    }
});

List<ConfigurationPolicyAssociationSummary> configurationPolicyAssociations = response.ConfigurationPolicyAssociations;
List<UnprocessedConfigurationPolicyAssociation> unprocessedConfigurationPolicyAssociations = response.UnprocessedConfigurationPolicyAssociations;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5