Interface PutResourcePolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>,RumRequest.Builder,SdkBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutResourcePolicyRequest
@Mutable @NotThreadSafe public static interface PutResourcePolicyRequest.Builder extends RumRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutResourcePolicyRequest.Buildername(String name)The name of the app monitor that you want to apply this resource-based policy to.PutResourcePolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutResourcePolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutResourcePolicyRequest.BuilderpolicyDocument(String policyDocument)The JSON to use as the resource policy.PutResourcePolicyRequest.BuilderpolicyRevisionId(String policyRevisionId)A string value that you can use to conditionally update your policy.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rum.model.RumRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
PutResourcePolicyRequest.Builder name(String name)
The name of the app monitor that you want to apply this resource-based policy to. To find the names of your app monitors, you can use the ListAppMonitors operation.
- Parameters:
name- The name of the app monitor that you want to apply this resource-based policy to. To find the names of your app monitors, you can use the ListAppMonitors operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDocument
PutResourcePolicyRequest.Builder policyDocument(String policyDocument)
The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see Using resource-based policies with CloudWatch RUM.
- Parameters:
policyDocument- The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see Using resource-based policies with CloudWatch RUM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyRevisionId
PutResourcePolicyRequest.Builder policyRevisionId(String policyRevisionId)
A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.
When you assign a policy revision ID, then later requests about that policy will be rejected with an
InvalidPolicyRevisionIdExceptionerror if they don't provide the correct current revision ID.- Parameters:
policyRevisionId- A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.When you assign a policy revision ID, then later requests about that policy will be rejected with an
InvalidPolicyRevisionIdExceptionerror if they don't provide the correct current revision ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-