# AddToResourcePolicyResult

Result of calling addToResourcePolicy.

- Source: [`aws-iam/lib/grant.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-iam/lib/grant.ts#L599)

## Example

```ts
const bucket = s3.Bucket.fromBucketName(this, 'existingBucket', 'amzn-s3-demo-bucket');

// No policy statement will be added to the resource
const result = bucket.addToResourcePolicy(
  new iam.PolicyStatement({
    actions: ['s3:GetObject'],
    resources: [bucket.arnForObjects('file.txt')],
    principals: [new iam.AccountRootPrincipal()],
  })
);
```

## Properties

- `policyDependable`: [IDependable](/cdk/api/v2/docs/constructs.IDependable.html) — Dependable which allows depending on the policy change being applied.

  **Default:** If `statementAdded` is true, the resource object itself. Otherwise, no dependable.

- `statementAdded`: boolean (required) — Whether the statement was added.
