AWS SDK for C++  1.9.130
AWS SDK for C++
Public Member Functions | List of all members
Aws::CloudWatchLogs::Model::PutResourcePolicyRequest Class Reference

#include <PutResourcePolicyRequest.h>

+ Inheritance diagram for Aws::CloudWatchLogs::Model::PutResourcePolicyRequest:

Public Member Functions

 PutResourcePolicyRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const override
 
const Aws::StringGetPolicyName () const
 
bool PolicyNameHasBeenSet () const
 
void SetPolicyName (const Aws::String &value)
 
void SetPolicyName (Aws::String &&value)
 
void SetPolicyName (const char *value)
 
PutResourcePolicyRequestWithPolicyName (const Aws::String &value)
 
PutResourcePolicyRequestWithPolicyName (Aws::String &&value)
 
PutResourcePolicyRequestWithPolicyName (const char *value)
 
const Aws::StringGetPolicyDocument () const
 
bool PolicyDocumentHasBeenSet () const
 
void SetPolicyDocument (const Aws::String &value)
 
void SetPolicyDocument (Aws::String &&value)
 
void SetPolicyDocument (const char *value)
 
PutResourcePolicyRequestWithPolicyDocument (const Aws::String &value)
 
PutResourcePolicyRequestWithPolicyDocument (Aws::String &&value)
 
PutResourcePolicyRequestWithPolicyDocument (const char *value)
 
- Public Member Functions inherited from Aws::CloudWatchLogs::CloudWatchLogsRequest
virtual ~CloudWatchLogsRequest ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Additional Inherited Members

- Protected Member Functions inherited from Aws::AmazonWebServiceRequest
virtual void DumpBodyToUrl (Aws::Http::URI &uri) const
 

Detailed Description

Definition at line 21 of file PutResourcePolicyRequest.h.

Constructor & Destructor Documentation

◆ PutResourcePolicyRequest()

Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::PutResourcePolicyRequest ( )

Member Function Documentation

◆ GetPolicyDocument()

const Aws::String& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::GetPolicyDocument ( ) const
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 99 of file PutResourcePolicyRequest.h.

◆ GetPolicyName()

const Aws::String& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::GetPolicyName ( ) const
inline

Name of the new policy. This parameter is required.

Definition at line 40 of file PutResourcePolicyRequest.h.

◆ GetRequestSpecificHeaders()

Aws::Http::HeaderValueCollection Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::GetRequestSpecificHeaders ( ) const
overridevirtual

◆ GetServiceRequestName()

virtual const char* Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

Implements Aws::AmazonWebServiceRequest.

Definition at line 30 of file PutResourcePolicyRequest.h.

◆ PolicyDocumentHasBeenSet()

bool Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::PolicyDocumentHasBeenSet ( ) const
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 122 of file PutResourcePolicyRequest.h.

◆ PolicyNameHasBeenSet()

bool Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::PolicyNameHasBeenSet ( ) const
inline

Name of the new policy. This parameter is required.

Definition at line 45 of file PutResourcePolicyRequest.h.

◆ SerializePayload()

Aws::String Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::SerializePayload ( ) const
overridevirtual

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetPolicyDocument() [1/3]

void Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::SetPolicyDocument ( Aws::String &&  value)
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 168 of file PutResourcePolicyRequest.h.

◆ SetPolicyDocument() [2/3]

void Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::SetPolicyDocument ( const Aws::String value)
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 145 of file PutResourcePolicyRequest.h.

◆ SetPolicyDocument() [3/3]

void Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::SetPolicyDocument ( const char *  value)
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 191 of file PutResourcePolicyRequest.h.

◆ SetPolicyName() [1/3]

void Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::SetPolicyName ( Aws::String &&  value)
inline

Name of the new policy. This parameter is required.

Definition at line 55 of file PutResourcePolicyRequest.h.

◆ SetPolicyName() [2/3]

void Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::SetPolicyName ( const Aws::String value)
inline

Name of the new policy. This parameter is required.

Definition at line 50 of file PutResourcePolicyRequest.h.

◆ SetPolicyName() [3/3]

void Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::SetPolicyName ( const char *  value)
inline

Name of the new policy. This parameter is required.

Definition at line 60 of file PutResourcePolicyRequest.h.

◆ WithPolicyDocument() [1/3]

PutResourcePolicyRequest& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::WithPolicyDocument ( Aws::String &&  value)
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 237 of file PutResourcePolicyRequest.h.

◆ WithPolicyDocument() [2/3]

PutResourcePolicyRequest& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::WithPolicyDocument ( const Aws::String value)
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 214 of file PutResourcePolicyRequest.h.

◆ WithPolicyDocument() [3/3]

PutResourcePolicyRequest& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::WithPolicyDocument ( const char *  value)
inline

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 "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

Definition at line 260 of file PutResourcePolicyRequest.h.

◆ WithPolicyName() [1/3]

PutResourcePolicyRequest& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::WithPolicyName ( Aws::String &&  value)
inline

Name of the new policy. This parameter is required.

Definition at line 70 of file PutResourcePolicyRequest.h.

◆ WithPolicyName() [2/3]

PutResourcePolicyRequest& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::WithPolicyName ( const Aws::String value)
inline

Name of the new policy. This parameter is required.

Definition at line 65 of file PutResourcePolicyRequest.h.

◆ WithPolicyName() [3/3]

PutResourcePolicyRequest& Aws::CloudWatchLogs::Model::PutResourcePolicyRequest::WithPolicyName ( const char *  value)
inline

Name of the new policy. This parameter is required.

Definition at line 75 of file PutResourcePolicyRequest.h.


The documentation for this class was generated from the following file: