Class CfnAccessGrantsLocation
The AWS::S3::AccessGrantsLocation
resource creates the S3 data location that you would like to register in your S3 Access Grants instance.
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAccessGrantsLocation : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnAccessGrantsLocation
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
Your S3 data must be in the same Region as your S3 Access Grants instance. The location can be one of the following:
When you register a location, you must include the IAM role that has permission to manage the S3 location that you are registering. Give S3 Access Grants permission to assume this role using a policy . S3 Access Grants assumes this role to manage access to the location and to vend temporary credentials to grantees or client applications.
CloudformationResource: AWS::S3::AccessGrantsLocation
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var cfnAccessGrantsLocation = new CfnAccessGrantsLocation(this, "MyCfnAccessGrantsLocation", new CfnAccessGrantsLocationProps {
IamRoleArn = "iamRoleArn",
LocationScope = "locationScope",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnAccessGrantsLocation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnAccessGrantsLocation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnAccessGrantsLocation(Construct, String, ICfnAccessGrantsLocationProps) |
Properties
AttrAccessGrantsLocationArn | The ARN of the location you are registering. |
AttrAccessGrantsLocationId | The ID of the registered location to which you are granting access. |
CdkTagManager | Tag Manager which manages the tags for this resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
IamRoleArn | The Amazon Resource Name (ARN) of the IAM role for the registered location. |
LocationScope | The S3 URI path to the location that you are registering. |
Tags | The AWS resource tags that you are adding to the S3 Access Grants location. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnAccessGrantsLocation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnAccessGrantsLocation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnAccessGrantsLocation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnAccessGrantsLocation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnAccessGrantsLocation(Construct, String, ICfnAccessGrantsLocationProps)
public CfnAccessGrantsLocation(Construct scope, string id, ICfnAccessGrantsLocationProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnAccessGrantsLocationProps
Resource properties.
Properties
AttrAccessGrantsLocationArn
The ARN of the location you are registering.
public virtual string AttrAccessGrantsLocationArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: AccessGrantsLocationArn
AttrAccessGrantsLocationId
The ID of the registered location to which you are granting access.
public virtual string AttrAccessGrantsLocationId { get; }
Property Value
System.String
Remarks
S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default
to the default location s3://
and assigns an auto-generated ID to other locations that you register.
CloudformationAttribute: AccessGrantsLocationId
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
IamRoleArn
The Amazon Resource Name (ARN) of the IAM role for the registered location.
public virtual string IamRoleArn { get; set; }
Property Value
System.String
LocationScope
The S3 URI path to the location that you are registering.
public virtual string LocationScope { get; set; }
Property Value
System.String
Tags
The AWS resource tags that you are adding to the S3 Access Grants location.
public virtual ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>