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 PutResourcePolicy operation. Creates or updates a resource policy allowing other Amazon Web Services services to put log events to this account, such as Amazon Route 53. An account can have up to 10 resource policies per Amazon Web Services Region.
Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z
public class PutResourcePolicyRequest : AmazonCloudWatchLogsRequest IAmazonWebServiceRequest
The PutResourcePolicyRequest type exposes the following members
Name | Description | |
---|---|---|
PutResourcePolicyRequest() |
Name | Type | Description | |
---|---|---|---|
PolicyDocument | System.String |
Gets and sets the property PolicyDocument. Details of the new policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. This parameter is required.
The following example creates a resource policy enabling the Route 53 service to put
DNS query logs in to the specified log group. Replace CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.
In the example resource policy, you would replace the value of
|
|
PolicyName | System.String |
Gets and sets the property PolicyName. Name of the new policy. This parameter is required. |
.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