A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartDeclarativePoliciesReport.html below:

StartDeclarativePoliciesReport - Amazon Elastic Compute Cloud

StartDeclarativePoliciesReport

Generates an account status report. The report is generated asynchronously, and can take several hours to complete.

The report provides the current status of all attributes supported by declarative policies for the accounts within the specified scope. The scope is determined by the specified TargetId, which can represent an individual account, or all the accounts that fall under the specified organizational unit (OU) or root (the entire AWS Organization).

The report is saved to your specified S3 bucket, using the following path structure (with the capitalized placeholders representing your specific values):

s3://AMZN-S3-DEMO-BUCKET/YOUR-OPTIONAL-S3-PREFIX/ec2_TARGETID_REPORTID_YYYYMMDDTHHMMZ.csv

Prerequisites for generating a report

For more information, including the required IAM permissions to run this API, see Generating the account status report for declarative policies in the AWS Organizations User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

S3Bucket

The name of the S3 bucket where the report will be saved. The bucket must be in the same Region where the report generation request is made.

Type: String

Required: Yes

S3Prefix

The prefix for your S3 object.

Type: String

Required: No

TagSpecification.N

The tags to apply.

Type: Array of TagSpecification objects

Required: No

TargetId

The root ID, organizational unit ID, or account ID.

Format:

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.

reportId

The ID of the report.

Type: String

requestId

The ID of the request.

Type: String

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples Sample Amazon S3 policy

Before generating a report, you must grant the EC2 Declarative Policies principal access to the Amazon S3 bucket where the report will be stored. To do this, attach the following policy to the bucket. Remember to replace amzn-s3-demo-bucket in the policy with your actual S3 bucket name, and identity_ARN with the IAM identity used to call the StartDeclarativePoliciesReport API. The statement in the Condition element ensures that the service can call the operation on your behalf using the credentials used to call the StartDeclarativePoliciesReport API.

{
    "Version": "2012-10-17",
    "Statement": [{
        "Sid": "DeclarativePoliciesReportDelivery",
        "Effect": "Allow",
        "Principal": {
            "AWS": "identity_ARN"
        },
        "Action": [
            "s3:PutObject"
        ],
        "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/*",
        "Condition": {
            "StringEquals": {
                "aws:CalledViaLast": "report.declarative-policies-ec2.amazonaws.com"
            }
        }
    }]
}
See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4