CfnOwnerProps Struct
Properties for defining a CfnOwner.
| 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_datazone as datazone } from 'aws-cdk-lib';
const cfnOwnerProps: datazone.CfnOwnerProps = {
domainIdentifier: 'domainIdentifier',
entityIdentifier: 'entityIdentifier',
entityType: 'entityType',
owner: {
group: {
groupIdentifier: 'groupIdentifier',
},
user: {
userIdentifier: 'userIdentifier',
},
},
};
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_datazone as datazone
cfn_owner_props = datazone.CfnOwnerProps(
domain_identifier="domainIdentifier",
entity_identifier="entityIdentifier",
entity_type="entityType",
owner=datazone.CfnOwner.OwnerPropertiesProperty(
group=datazone.CfnOwner.OwnerGroupPropertiesProperty(
group_identifier="groupIdentifier"
),
user=datazone.CfnOwner.OwnerUserPropertiesProperty(
user_identifier="userIdentifier"
)
)
)
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.datazone.*;
CfnOwnerProps cfnOwnerProps = CfnOwnerProps.builder()
.domainIdentifier("domainIdentifier")
.entityIdentifier("entityIdentifier")
.entityType("entityType")
.owner(OwnerPropertiesProperty.builder()
.group(OwnerGroupPropertiesProperty.builder()
.groupIdentifier("groupIdentifier")
.build())
.user(OwnerUserPropertiesProperty.builder()
.userIdentifier("userIdentifier")
.build())
.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.DataZone;
var cfnOwnerProps = new CfnOwnerProps {
DomainIdentifier = "domainIdentifier",
EntityIdentifier = "entityIdentifier",
EntityType = "entityType",
Owner = new OwnerPropertiesProperty {
Group = new OwnerGroupPropertiesProperty {
GroupIdentifier = "groupIdentifier"
},
User = new OwnerUserPropertiesProperty {
UserIdentifier = "userIdentifier"
}
}
};
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"
cfnOwnerProps := &CfnOwnerProps{
DomainIdentifier: jsii.String("domainIdentifier"),
EntityIdentifier: jsii.String("entityIdentifier"),
EntityType: jsii.String("entityType"),
Owner: &OwnerPropertiesProperty{
Group: &OwnerGroupPropertiesProperty{
GroupIdentifier: jsii.String("groupIdentifier"),
},
User: &OwnerUserPropertiesProperty{
UserIdentifier: jsii.String("userIdentifier"),
},
},
}
Properties
domainIdentifierstringdomain_identifierstrdomainIdentifierStringDomainIdentifierstringDomainIdentifier*string required #The ID of the domain in which you want to add the entity owner.
entityIdentifierstringentity_identifierstrentityIdentifierStringEntityIdentifierstringEntityIdentifier*string required #The ID of the entity to which you want to add an owner.
The type of an entity.
ownerIResolvable | CfnOwner.OwnerPropertiesPropertyownertyping.Union[IResolvable, OwnerPropertiesProperty]ownerIResolvableOwnerIResolvableOwnerinterface{} required #The owner that you want to add to the entity.