Class CfnPermissionsPropsMixin
The AWS::LakeFormation::Permissions resource represents the permissions that a principal has on an AWS Glue Data Catalog resource (such as AWS Glue database or AWS Glue tables).
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.LakeFormation.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnPermissionsPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnPermissionsPropsMixin Inherits Mixin Implements IMixin
Remarks
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-principalpermissions.html">AWS:LakeFormation::PrincipalPermissions</a>
CloudformationResource: AWS::LakeFormation::Permissions
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.LakeFormation.Mixins;
var cfnPermissionsPropsMixin = new CfnPermissionsPropsMixin(new CfnPermissionsMixinProps {
DataLakePrincipal = new DataLakePrincipalProperty {
DataLakePrincipalIdentifier = "dataLakePrincipalIdentifier"
},
Permissions = new [] { "permissions" },
PermissionsWithGrantOption = new [] { "permissionsWithGrantOption" },
Resource = new ResourceProperty {
DatabaseResource = new DatabaseResourceProperty {
CatalogId = "catalogId",
Name = "name"
},
DataLocationResource = new DataLocationResourceProperty {
CatalogId = "catalogId",
S3Resource = "s3Resource"
},
TableResource = new TableResourceProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
Name = "name",
TableWildcard = new TableWildcardProperty { }
},
TableWithColumnsResource = new TableWithColumnsResourceProperty {
CatalogId = "catalogId",
ColumnNames = new [] { "columnNames" },
ColumnWildcard = new ColumnWildcardProperty {
ExcludedColumnNames = new [] { "excludedColumnNames" }
},
DatabaseName = "databaseName",
Name = "name"
}
}
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Synopsis
Constructors
| CfnPermissionsPropsMixin(ICfnPermissionsMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | The |
| Props | The |
| Strategy | The |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnPermissionsPropsMixin(ICfnPermissionsMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::LakeFormation::Permissions.
public CfnPermissionsPropsMixin(ICfnPermissionsMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnPermissionsMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-principalpermissions.html">AWS:LakeFormation::PrincipalPermissions</a>
CloudformationResource: AWS::LakeFormation::Permissions
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
The AWS::LakeFormation::Permissions resource represents the permissions that a principal has on an AWS Glue Data Catalog resource (such as AWS Glue database or AWS Glue tables).
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-principalpermissions.html">AWS:LakeFormation::PrincipalPermissions</a>
CloudformationResource: AWS::LakeFormation::Permissions
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.LakeFormation.Mixins;
var cfnPermissionsPropsMixin = new CfnPermissionsPropsMixin(new CfnPermissionsMixinProps {
DataLakePrincipal = new DataLakePrincipalProperty {
DataLakePrincipalIdentifier = "dataLakePrincipalIdentifier"
},
Permissions = new [] { "permissions" },
PermissionsWithGrantOption = new [] { "permissionsWithGrantOption" },
Resource = new ResourceProperty {
DatabaseResource = new DatabaseResourceProperty {
CatalogId = "catalogId",
Name = "name"
},
DataLocationResource = new DataLocationResourceProperty {
CatalogId = "catalogId",
S3Resource = "s3Resource"
},
TableResource = new TableResourceProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
Name = "name",
TableWildcard = new TableWildcardProperty { }
},
TableWithColumnsResource = new TableWithColumnsResourceProperty {
CatalogId = "catalogId",
ColumnNames = new [] { "columnNames" },
ColumnWildcard = new ColumnWildcardProperty {
ExcludedColumnNames = new [] { "excludedColumnNames" }
},
DatabaseName = "databaseName",
Name = "name"
}
}
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Props
The AWS::LakeFormation::Permissions resource represents the permissions that a principal has on an AWS Glue Data Catalog resource (such as AWS Glue database or AWS Glue tables).
protected virtual ICfnPermissionsMixinProps Props { get; }
Property Value
Remarks
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-principalpermissions.html">AWS:LakeFormation::PrincipalPermissions</a>
CloudformationResource: AWS::LakeFormation::Permissions
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.LakeFormation.Mixins;
var cfnPermissionsPropsMixin = new CfnPermissionsPropsMixin(new CfnPermissionsMixinProps {
DataLakePrincipal = new DataLakePrincipalProperty {
DataLakePrincipalIdentifier = "dataLakePrincipalIdentifier"
},
Permissions = new [] { "permissions" },
PermissionsWithGrantOption = new [] { "permissionsWithGrantOption" },
Resource = new ResourceProperty {
DatabaseResource = new DatabaseResourceProperty {
CatalogId = "catalogId",
Name = "name"
},
DataLocationResource = new DataLocationResourceProperty {
CatalogId = "catalogId",
S3Resource = "s3Resource"
},
TableResource = new TableResourceProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
Name = "name",
TableWildcard = new TableWildcardProperty { }
},
TableWithColumnsResource = new TableWithColumnsResourceProperty {
CatalogId = "catalogId",
ColumnNames = new [] { "columnNames" },
ColumnWildcard = new ColumnWildcardProperty {
ExcludedColumnNames = new [] { "excludedColumnNames" }
},
DatabaseName = "databaseName",
Name = "name"
}
}
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Strategy
The AWS::LakeFormation::Permissions resource represents the permissions that a principal has on an AWS Glue Data Catalog resource (such as AWS Glue database or AWS Glue tables).
protected virtual PropertyMergeStrategy Strategy { get; }
Property Value
Remarks
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-principalpermissions.html">AWS:LakeFormation::PrincipalPermissions</a>
CloudformationResource: AWS::LakeFormation::Permissions
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.LakeFormation.Mixins;
var cfnPermissionsPropsMixin = new CfnPermissionsPropsMixin(new CfnPermissionsMixinProps {
DataLakePrincipal = new DataLakePrincipalProperty {
DataLakePrincipalIdentifier = "dataLakePrincipalIdentifier"
},
Permissions = new [] { "permissions" },
PermissionsWithGrantOption = new [] { "permissionsWithGrantOption" },
Resource = new ResourceProperty {
DatabaseResource = new DatabaseResourceProperty {
CatalogId = "catalogId",
Name = "name"
},
DataLocationResource = new DataLocationResourceProperty {
CatalogId = "catalogId",
S3Resource = "s3Resource"
},
TableResource = new TableResourceProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
Name = "name",
TableWildcard = new TableWildcardProperty { }
},
TableWithColumnsResource = new TableWithColumnsResourceProperty {
CatalogId = "catalogId",
ColumnNames = new [] { "columnNames" },
ColumnWildcard = new ColumnWildcardProperty {
ExcludedColumnNames = new [] { "excludedColumnNames" }
},
DatabaseName = "databaseName",
Name = "name"
}
}
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override IConstruct ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Returns
IConstruct
Overrides
Remarks
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-principalpermissions.html">AWS:LakeFormation::PrincipalPermissions</a>
CloudformationResource: AWS::LakeFormation::Permissions
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-principalpermissions.html">AWS:LakeFormation::PrincipalPermissions</a>
CloudformationResource: AWS::LakeFormation::Permissions
Mixin: true
ExampleMetadata: fixture=_generated