@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.335Z") @Stability(value=Stable) public class CfnContainer extends CfnResource implements IInspectable
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.mediastore.*;
CfnContainer cfnContainer = CfnContainer.Builder.create(this, "MyCfnContainer")
.containerName("containerName")
// the properties below are optional
.accessLoggingEnabled(false)
.corsPolicy(List.of(CorsRuleProperty.builder()
.allowedHeaders(List.of("allowedHeaders"))
.allowedMethods(List.of("allowedMethods"))
.allowedOrigins(List.of("allowedOrigins"))
.exposeHeaders(List.of("exposeHeaders"))
.maxAgeSeconds(123)
.build()))
.lifecyclePolicy("lifecyclePolicy")
.metricPolicy(MetricPolicyProperty.builder()
.containerLevelMetrics("containerLevelMetrics")
// the properties below are optional
.metricPolicyRules(List.of(MetricPolicyRuleProperty.builder()
.objectGroup("objectGroup")
.objectGroupName("objectGroupName")
.build()))
.build())
.policy("policy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnContainer.Builder
A fluent builder for
CfnContainer. |
static interface |
CfnContainer.CorsRuleProperty
Example:
|
static interface |
CfnContainer.MetricPolicyProperty
Example:
|
static interface |
CfnContainer.MetricPolicyRuleProperty
Example:
|
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 |
|---|---|
|
CfnContainer(software.constructs.Construct scope,
String id,
CfnContainerProps props)
Create a new `AWS::MediaStore::Container`.
|
protected |
CfnContainer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnContainer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAccessLoggingEnabled()
`AWS::MediaStore::Container.AccessLoggingEnabled`.
|
String |
getAttrEndpoint() |
protected Map<String,Object> |
getCfnProperties() |
String |
getContainerName()
`AWS::MediaStore::Container.ContainerName`.
|
Object |
getCorsPolicy()
`AWS::MediaStore::Container.CorsPolicy`.
|
String |
getLifecyclePolicy()
`AWS::MediaStore::Container.LifecyclePolicy`.
|
Object |
getMetricPolicy()
`AWS::MediaStore::Container.MetricPolicy`.
|
String |
getPolicy()
`AWS::MediaStore::Container.Policy`.
|
TagManager |
getTags()
`AWS::MediaStore::Container.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessLoggingEnabled(Boolean value)
`AWS::MediaStore::Container.AccessLoggingEnabled`.
|
void |
setAccessLoggingEnabled(IResolvable value)
`AWS::MediaStore::Container.AccessLoggingEnabled`.
|
void |
setContainerName(String value)
`AWS::MediaStore::Container.ContainerName`.
|
void |
setCorsPolicy(IResolvable value)
`AWS::MediaStore::Container.CorsPolicy`.
|
void |
setCorsPolicy(List<Object> value)
`AWS::MediaStore::Container.CorsPolicy`.
|
void |
setLifecyclePolicy(String value)
`AWS::MediaStore::Container.LifecyclePolicy`.
|
void |
setMetricPolicy(CfnContainer.MetricPolicyProperty value)
`AWS::MediaStore::Container.MetricPolicy`.
|
void |
setMetricPolicy(IResolvable value)
`AWS::MediaStore::Container.MetricPolicy`.
|
void |
setPolicy(String value)
`AWS::MediaStore::Container.Policy`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, 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 CfnContainer(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnContainer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnContainer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnContainerProps 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) @Nullable public Object getAccessLoggingEnabled()
@Stability(value=Stable)
public void setAccessLoggingEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setAccessLoggingEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getAttrEndpoint()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getContainerName()
@Stability(value=Stable)
public void setContainerName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getCorsPolicy()
@Stability(value=Stable)
public void setCorsPolicy(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setCorsPolicy(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getLifecyclePolicy()
@Stability(value=Stable)
public void setLifecyclePolicy(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getMetricPolicy()
@Stability(value=Stable)
public void setMetricPolicy(@Nullable
CfnContainer.MetricPolicyProperty value)
@Stability(value=Stable)
public void setMetricPolicy(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getPolicy()
@Stability(value=Stable)
public void setPolicy(@Nullable
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.