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.
Container for the parameters to the DescribeAccountPolicies operation. Returns a list of all CloudWatch Logs account policies in the account.
To use this operation, you must be signed on with the correct permissions depending on the type of policy that you are retrieving information for.
To see data protection policies, you must have the logs:GetDataProtectionPolicy
and logs:DescribeAccountPolicies
permissions.
To see subscription filter policies, you must have the logs:DescribeSubscriptionFilters
and logs:DescribeAccountPolicies
permissions.
To see transformer policies, you must have the logs:GetTransformer
and logs:DescribeAccountPolicies
permissions.
To see field index policies, you must have the logs:DescribeIndexPolicies
and
logs:DescribeAccountPolicies
permissions.
Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z
public class DescribeAccountPoliciesRequest : AmazonCloudWatchLogsRequest IAmazonWebServiceRequest
The DescribeAccountPoliciesRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
DescribeAccountPoliciesRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
AccountIdentifiers | System.Collections.Generic.List<System.String> |
Gets and sets the property AccountIdentifiers. If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter. If you omit this parameter, only the policy in the current account is returned. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
NextToken | System.String |
Gets and sets the property NextToken. The token for the next set of items to return. (You received this token from a previous call.) |
![]() |
PolicyName | System.String |
Gets and sets the property PolicyName. Use this parameter to limit the returned policies to only the policy with the name that you specify. |
![]() |
PolicyType | Amazon.CloudWatchLogs.PolicyType |
Gets and sets the property PolicyType. Use this parameter to limit the returned policies to only the policies that match the policy type that you specify. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer