@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.625Z") @Stability(value=Stable) public class CfnEntitlement extends CfnResource implements IInspectable
Creates an entitlement to control access, based on user attributes, to specific applications within a stack. Entitlements apply to SAML 2.0 federated user identities. Amazon AppStream 2.0 user pool and streaming URL users are entitled to all applications in a stack. Entitlements don't apply to the desktop stream view application or to applications managed by a dynamic app provider using the Dynamic Application Framework.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appstream.*;
CfnEntitlement cfnEntitlement = CfnEntitlement.Builder.create(this, "MyCfnEntitlement")
.appVisibility("appVisibility")
.attributes(List.of(AttributeProperty.builder()
.name("name")
.value("value")
.build()))
.name("name")
.stackName("stackName")
// the properties below are optional
.description("description")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnEntitlement.AttributeProperty
An attribute that belongs to an entitlement.
|
static class |
CfnEntitlement.Builder
A fluent builder for
CfnEntitlement. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEntitlement(software.constructs.Construct scope,
String id,
CfnEntitlementProps props)
Create a new `AWS::AppStream::Entitlement`.
|
protected |
CfnEntitlement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEntitlement(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppVisibility()
Specifies whether to entitle all apps or only selected apps.
|
String |
getAttrCreatedTime()
The time when the entitlement was created.
|
Object |
getAttributes()
The attributes of the entitlement.
|
String |
getAttrLastModifiedTime()
The time when the entitlement was last modified.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The description of the entitlement.
|
String |
getName()
The name of the entitlement.
|
String |
getStackName()
The name of the stack.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAppVisibility(String value)
Specifies whether to entitle all apps or only selected apps.
|
void |
setAttributes(IResolvable value)
The attributes of the entitlement.
|
void |
setAttributes(List<Object> value)
The attributes of the entitlement.
|
void |
setDescription(String value)
The description of the entitlement.
|
void |
setName(String value)
The name of the entitlement.
|
void |
setStackName(String value)
The name of the stack.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEntitlement(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEntitlement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEntitlement(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEntitlementProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCreatedTime()
@Stability(value=Stable) @NotNull public String getAttrLastModifiedTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getAppVisibility()
@Stability(value=Stable)
public void setAppVisibility(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getAttributes()
@Stability(value=Stable)
public void setAttributes(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setAttributes(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getStackName()
@Stability(value=Stable)
public void setStackName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.