PrincipalPrivilegesProperty Struct
the permissions granted to a principal.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const principalPrivilegesProperty: glue.CfnDatabase.PrincipalPrivilegesProperty = {
permissions: ['permissions'],
principal: {
dataLakePrincipalIdentifier: 'dataLakePrincipalIdentifier',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue
principal_privileges_property = glue.CfnDatabase.PrincipalPrivilegesProperty(
permissions=["permissions"],
principal=glue.CfnDatabase.DataLakePrincipalProperty(
data_lake_principal_identifier="dataLakePrincipalIdentifier"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
PrincipalPrivilegesProperty principalPrivilegesProperty = PrincipalPrivilegesProperty.builder()
.permissions(List.of("permissions"))
.principal(DataLakePrincipalProperty.builder()
.dataLakePrincipalIdentifier("dataLakePrincipalIdentifier")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var principalPrivilegesProperty = new PrincipalPrivilegesProperty {
Permissions = new [] { "permissions" },
Principal = new DataLakePrincipalProperty {
DataLakePrincipalIdentifier = "dataLakePrincipalIdentifier"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
principalPrivilegesProperty := &PrincipalPrivilegesProperty{
Permissions: []*string{
jsii.String("permissions"),
},
Principal: &DataLakePrincipalProperty{
DataLakePrincipalIdentifier: jsii.String("dataLakePrincipalIdentifier"),
},
}
Properties
permissionsoptionalstring[]permissionsoptionaltyping.List[str]permissionsoptionalList<String>Permissionsoptionalstring[]Permissionsoptional*[]*string #The permissions that are granted to the principal.
principaloptionalIResolvable | CfnDatabase.principaloptionaltyping.Union[IResolvable, DataLakePrincipalProperty]principaloptionalIResolvablePrincipaloptionalIResolvablePrincipaloptionalinterface{} #The principal who is granted permissions.