CfnAssignmentProps Struct
Properties for defining a CfnAssignment.
| 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_quicksight as quicksight } from 'aws-cdk-lib';
const cfnAssignmentProps: quicksight.CfnAssignmentProps = {
assignmentName: 'assignmentName',
assignmentStatus: 'assignmentStatus',
namespace: 'namespace',
// the properties below are optional
identities: {
identitiesKey: ['identities'],
},
policyArn: 'policyArn',
};
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_quicksight as quicksight
cfn_assignment_props = quicksight.CfnAssignmentProps(
assignment_name="assignmentName",
assignment_status="assignmentStatus",
namespace="namespace",
# the properties below are optional
identities={
"identities_key": ["identities"]
},
policy_arn="policyArn"
)
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.quicksight.*;
CfnAssignmentProps cfnAssignmentProps = CfnAssignmentProps.builder()
.assignmentName("assignmentName")
.assignmentStatus("assignmentStatus")
.namespace("namespace")
// the properties below are optional
.identities(Map.of(
"identitiesKey", List.of("identities")))
.policyArn("policyArn")
.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.QuickSight;
var cfnAssignmentProps = new CfnAssignmentProps {
AssignmentName = "assignmentName",
AssignmentStatus = "assignmentStatus",
Namespace = "namespace",
// the properties below are optional
Identities = new Dictionary<string, string[]> {
{ "identitiesKey", new [] { "identities" } }
},
PolicyArn = "policyArn"
};
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"
cfnAssignmentProps := &CfnAssignmentProps{
AssignmentName: jsii.String("assignmentName"),
AssignmentStatus: jsii.String("assignmentStatus"),
Namespace: jsii.String("namespace"),
// the properties below are optional
Identities: map[string][]*string{
"identitiesKey": []*string{
jsii.String("identities"),
},
},
PolicyArn: jsii.String("policyArn"),
}
Properties
assignmentNamestringassignment_namestrassignmentNameStringAssignmentNamestringAssignmentName*string required #The name of the assignment, also called a rule.
The name must be unique within the AWS account.
assignmentStatusstringassignment_statusstrassignmentStatusStringAssignmentStatusstringAssignmentStatus*string required #The status of the assignment.
identitiesoptionalIResolvable | { [key: string]: string[] }identitiesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.List[str]]]identitiesoptionalIResolvableIdentitiesoptionalIResolvableIdentitiesoptionalinterface{} #The QuickSight users, groups, or both that you want to assign the policy to.
This maps identity type to a list of identity names.
The namespace that contains the assignment.
policyArnoptionalstringpolicy_arnoptionalstrpolicyArnoptionalStringPolicyArnoptionalstringPolicyArnoptional*string #The ARN for the IAM policy to apply to the QuickSight users and groups specified in this assignment.