Class CfnSimpleTable

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:35.696Z") @Stability(Stable) public class CfnSimpleTable extends CfnResource implements IInspectable
A CloudFormation AWS::Serverless::SimpleTable.

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.sam.*;
 CfnSimpleTable cfnSimpleTable = CfnSimpleTable.Builder.create(this, "MyCfnSimpleTable")
         .primaryKey(PrimaryKeyProperty.builder()
                 .type("type")
                 // the properties below are optional
                 .name("name")
                 .build())
         .provisionedThroughput(ProvisionedThroughputProperty.builder()
                 .writeCapacityUnits(123)
                 // the properties below are optional
                 .readCapacityUnits(123)
                 .build())
         .sseSpecification(SSESpecificationProperty.builder()
                 .sseEnabled(false)
                 .build())
         .tableName("tableName")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
    • REQUIRED_TRANSFORM

      @Stability(Stable) public static final String REQUIRED_TRANSFORM
      The Transform a template must use in order to use this resource.
  • Constructor Details

    • CfnSimpleTable

      protected CfnSimpleTable(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnSimpleTable

      protected CfnSimpleTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnSimpleTable

      @Stability(Stable) public CfnSimpleTable(@NotNull Construct scope, @NotNull String id, @Nullable CfnSimpleTableProps props)
      Create a new AWS::Serverless::SimpleTable.

      Parameters:
      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.
    • CfnSimpleTable

      @Stability(Stable) public CfnSimpleTable(@NotNull Construct scope, @NotNull String id)
      Create a new AWS::Serverless::SimpleTable.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      AWS::Serverless::SimpleTable.Tags.
    • getPrimaryKey

      @Stability(Stable) @Nullable public Object getPrimaryKey()
      AWS::Serverless::SimpleTable.PrimaryKey.
    • setPrimaryKey

      @Stability(Stable) public void setPrimaryKey(@Nullable IResolvable value)
      AWS::Serverless::SimpleTable.PrimaryKey.
    • setPrimaryKey

      @Stability(Stable) public void setPrimaryKey(@Nullable CfnSimpleTable.PrimaryKeyProperty value)
      AWS::Serverless::SimpleTable.PrimaryKey.
    • getProvisionedThroughput

      @Stability(Stable) @Nullable public Object getProvisionedThroughput()
      AWS::Serverless::SimpleTable.ProvisionedThroughput.
    • setProvisionedThroughput

      @Stability(Stable) public void setProvisionedThroughput(@Nullable IResolvable value)
      AWS::Serverless::SimpleTable.ProvisionedThroughput.
    • setProvisionedThroughput

      @Stability(Stable) public void setProvisionedThroughput(@Nullable CfnSimpleTable.ProvisionedThroughputProperty value)
      AWS::Serverless::SimpleTable.ProvisionedThroughput.
    • getSseSpecification

      @Stability(Stable) @Nullable public Object getSseSpecification()
      AWS::Serverless::SimpleTable.SSESpecification.
    • setSseSpecification

      @Stability(Stable) public void setSseSpecification(@Nullable IResolvable value)
      AWS::Serverless::SimpleTable.SSESpecification.
    • setSseSpecification

      @Stability(Stable) public void setSseSpecification(@Nullable CfnSimpleTable.SSESpecificationProperty value)
      AWS::Serverless::SimpleTable.SSESpecification.
    • getTableName

      @Stability(Stable) @Nullable public String getTableName()
      AWS::Serverless::SimpleTable.TableName.
    • setTableName

      @Stability(Stable) public void setTableName(@Nullable String value)
      AWS::Serverless::SimpleTable.TableName.