Interface PutResourcePolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
,GlueRequest.Builder
,SdkBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- PutResourcePolicyRequest
public static interface PutResourcePolicyRequest.Builder extends GlueRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutResourcePolicyRequest.Builder
enableHybrid(String enableHybrid)
If'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:PutResourcePolicyRequest.Builder
enableHybrid(EnableHybridValues enableHybrid)
If'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:PutResourcePolicyRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
PutResourcePolicyRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
PutResourcePolicyRequest.Builder
policyExistsCondition(String policyExistsCondition)
A value ofMUST_EXIST
is used to update a policy.PutResourcePolicyRequest.Builder
policyExistsCondition(ExistCondition policyExistsCondition)
A value ofMUST_EXIST
is used to update a policy.PutResourcePolicyRequest.Builder
policyHashCondition(String policyHashCondition)
The hash value returned when the previous policy was set usingPutResourcePolicy
.PutResourcePolicyRequest.Builder
policyInJson(String policyInJson)
Contains the policy document to set, in JSON format.PutResourcePolicyRequest.Builder
resourceArn(String resourceArn)
Do not use.-
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.glue.model.GlueRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
policyInJson
PutResourcePolicyRequest.Builder policyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
- Parameters:
policyInJson
- Contains the policy document to set, in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
PutResourcePolicyRequest.Builder resourceArn(String resourceArn)
Do not use. For internal use only.
- Parameters:
resourceArn
- Do not use. For internal use only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyHashCondition
PutResourcePolicyRequest.Builder policyHashCondition(String policyHashCondition)
The hash value returned when the previous policy was set using
PutResourcePolicy
. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.- Parameters:
policyHashCondition
- The hash value returned when the previous policy was set usingPutResourcePolicy
. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyExistsCondition
PutResourcePolicyRequest.Builder policyExistsCondition(String policyExistsCondition)
A value of
MUST_EXIST
is used to update a policy. A value ofNOT_EXIST
is used to create a new policy. If a value ofNONE
or a null value is used, the call does not depend on the existence of a policy.- Parameters:
policyExistsCondition
- A value ofMUST_EXIST
is used to update a policy. A value ofNOT_EXIST
is used to create a new policy. If a value ofNONE
or a null value is used, the call does not depend on the existence of a policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExistCondition
,ExistCondition
-
policyExistsCondition
PutResourcePolicyRequest.Builder policyExistsCondition(ExistCondition policyExistsCondition)
A value of
MUST_EXIST
is used to update a policy. A value ofNOT_EXIST
is used to create a new policy. If a value ofNONE
or a null value is used, the call does not depend on the existence of a policy.- Parameters:
policyExistsCondition
- A value ofMUST_EXIST
is used to update a policy. A value ofNOT_EXIST
is used to create a new policy. If a value ofNONE
or a null value is used, the call does not depend on the existence of a policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExistCondition
,ExistCondition
-
enableHybrid
PutResourcePolicyRequest.Builder enableHybrid(String enableHybrid)
If
'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:-
By directly updating the resource policy with
PutResourePolicy
-
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to
'TRUE'
if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.- Parameters:
enableHybrid
- If'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:-
By directly updating the resource policy with
PutResourePolicy
-
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to
'TRUE'
if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnableHybridValues
,EnableHybridValues
-
-
enableHybrid
PutResourcePolicyRequest.Builder enableHybrid(EnableHybridValues enableHybrid)
If
'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:-
By directly updating the resource policy with
PutResourePolicy
-
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to
'TRUE'
if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.- Parameters:
enableHybrid
- If'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:-
By directly updating the resource policy with
PutResourePolicy
-
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to
'TRUE'
if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnableHybridValues
,EnableHybridValues
-
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-