Class CfnAccessGrantsInstance
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.s3.CfnAccessGrantsInstance
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAccessGrantsInstanceRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:21.583Z")
@Stability(Stable)
public class CfnAccessGrantsInstance
extends CfnResource
implements IInspectable, IAccessGrantsInstanceRef, ITaggableV2
The
AWS::S3::AccessGrantInstance resource creates an S3 Access Grants instance, which serves as a logical grouping for access grants.
You can create one S3 Access Grants instance per Region per account.
- Permissions - You must have the
s3:CreateAccessGrantsInstancepermission to use this resource. - Additional Permissions - To associate an IAM Identity Center instance with your S3 Access Grants instance, you must also have the
sso:DescribeInstance,sso:CreateApplication,sso:PutApplicationGrant, andsso:PutApplicationAuthenticationMethodpermissions.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
CfnAccessGrantsInstance cfnAccessGrantsInstance = CfnAccessGrantsInstance.Builder.create(this, "MyCfnAccessGrantsInstance")
.identityCenterArn("identityCenterArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAccessGrantsInstance.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.s3.IAccessGrantsInstanceRef
IAccessGrantsInstanceRef.Jsii$Default, IAccessGrantsInstanceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAccessGrantsInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAccessGrantsInstance(software.amazon.jsii.JsiiObjectRef objRef) CfnAccessGrantsInstance(software.constructs.Construct scope, String id) Create a newAWS::S3::AccessGrantsInstance.CfnAccessGrantsInstance(software.constructs.Construct scope, String id, CfnAccessGrantsInstanceProps props) Create a newAWS::S3::AccessGrantsInstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringA reference to a AccessGrantsInstance resource.The ARN of the S3 Access Grants instance.The ID of the S3 Access Grants instance.Tag Manager which manages the tags for this resource.If you would like to associate your S3 Access Grants instance with an AWS IAM Identity Center instance, use this field to pass the Amazon Resource Name (ARN) of the AWS IAM Identity Center instance that you are associating with your S3 Access Grants instance.getTags()The AWS resource tags that you are adding to the S3 Access Grants instance.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAccessGrantsInstance.renderProperties(Map<String, Object> props) voidsetIdentityCenterArn(String value) If you would like to associate your S3 Access Grants instance with an AWS IAM Identity Center instance, use this field to pass the Amazon Resource Name (ARN) of the AWS IAM Identity Center instance that you are associating with your S3 Access Grants instance.voidThe AWS resource tags that you are adding to the S3 Access Grants instance.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAccessGrantsInstance
protected CfnAccessGrantsInstance(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAccessGrantsInstance
protected CfnAccessGrantsInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAccessGrantsInstance
@Stability(Stable) public CfnAccessGrantsInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnAccessGrantsInstanceProps props) Create a newAWS::S3::AccessGrantsInstance.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnAccessGrantsInstance
@Stability(Stable) public CfnAccessGrantsInstance(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::S3::AccessGrantsInstance.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
arnForAccessGrantsInstance
@Stability(Stable) @NotNull public static String arnForAccessGrantsInstance(@NotNull IAccessGrantsInstanceRef resource) - Parameters:
resource- This parameter is required.
-
isCfnAccessGrantsInstance
Checks whether the given object is a CfnAccessGrantsInstance.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAccessGrantsInstanceRef
A reference to a AccessGrantsInstance resource.- Specified by:
getAccessGrantsInstanceRefin interfaceIAccessGrantsInstanceRef
-
getAttrAccessGrantsInstanceArn
The ARN of the S3 Access Grants instance. -
getAttrAccessGrantsInstanceId
The ID of the S3 Access Grants instance.The ID is
default. You can have one S3 Access Grants instance per Region per account. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIdentityCenterArn
If you would like to associate your S3 Access Grants instance with an AWS IAM Identity Center instance, use this field to pass the Amazon Resource Name (ARN) of the AWS IAM Identity Center instance that you are associating with your S3 Access Grants instance. -
setIdentityCenterArn
If you would like to associate your S3 Access Grants instance with an AWS IAM Identity Center instance, use this field to pass the Amazon Resource Name (ARN) of the AWS IAM Identity Center instance that you are associating with your S3 Access Grants instance. -
getTags
The AWS resource tags that you are adding to the S3 Access Grants instance. -
setTags
The AWS resource tags that you are adding to the S3 Access Grants instance.
-