CfnApiProps

class aws_cdk.aws_sam.CfnApiProps(*, stage_name, access_log_setting=None, auth=None, binary_media_types=None, cache_cluster_enabled=None, cache_cluster_size=None, cors=None, definition_body=None, definition_uri=None, endpoint_configuration=None, method_settings=None, name=None, tracing_enabled=None, variables=None)

Bases: object

__init__(*, stage_name, access_log_setting=None, auth=None, binary_media_types=None, cache_cluster_enabled=None, cache_cluster_size=None, cors=None, definition_body=None, definition_uri=None, endpoint_configuration=None, method_settings=None, name=None, tracing_enabled=None, variables=None)

Properties for defining a AWS::Serverless::Api.

Parameters
  • stage_name (str) – AWS::Serverless::Api.StageName.

  • access_log_setting (Union[IResolvable, None, AccessLogSettingProperty]) – AWS::Serverless::Api.AccessLogSetting.

  • auth (Union[IResolvable, None, AuthProperty]) – AWS::Serverless::Api.Auth.

  • binary_media_types (Optional[List[str]]) – AWS::Serverless::Api.BinaryMediaTypes.

  • cache_cluster_enabled (Union[bool, None, IResolvable]) – AWS::Serverless::Api.CacheClusterEnabled.

  • cache_cluster_size (Optional[str]) – AWS::Serverless::Api.CacheClusterSize.

  • cors (Union[str, None, IResolvable, CorsConfigurationProperty]) – AWS::Serverless::Api.Cors.

  • definition_body (Optional[Any]) – AWS::Serverless::Api.DefinitionBody.

  • definition_uri (Union[str, None, IResolvable, S3LocationProperty]) – AWS::Serverless::Api.DefinitionUri.

  • endpoint_configuration (Optional[str]) – AWS::Serverless::Api.EndpointConfiguration.

  • method_settings (Union[List[Any], None, IResolvable]) – AWS::Serverless::Api.MethodSettings.

  • name (Optional[str]) – AWS::Serverless::Api.Name.

  • tracing_enabled (Union[bool, None, IResolvable]) – AWS::Serverless::Api.TracingEnabled.

  • variables (Union[IResolvable, None, Mapping[str, str]]) – AWS::Serverless::Api.Variables.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Attributes

access_log_setting

AWS::Serverless::Api.AccessLogSetting.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[IResolvable, None, AccessLogSettingProperty]

auth

AWS::Serverless::Api.Auth.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[IResolvable, None, AuthProperty]

binary_media_types

AWS::Serverless::Api.BinaryMediaTypes.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Optional[List[str]]

cache_cluster_enabled

AWS::Serverless::Api.CacheClusterEnabled.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[bool, None, IResolvable]

cache_cluster_size

AWS::Serverless::Api.CacheClusterSize.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Optional[str]

cors

AWS::Serverless::Api.Cors.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[str, None, IResolvable, CorsConfigurationProperty]

definition_body

AWS::Serverless::Api.DefinitionBody.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Any

definition_uri

AWS::Serverless::Api.DefinitionUri.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[str, None, IResolvable, S3LocationProperty]

endpoint_configuration

AWS::Serverless::Api.EndpointConfiguration.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Optional[str]

method_settings

AWS::Serverless::Api.MethodSettings.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[List[Any], None, IResolvable]

name

AWS::Serverless::Api.Name.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Optional[str]

stage_name

AWS::Serverless::Api.StageName.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

str

tracing_enabled

AWS::Serverless::Api.TracingEnabled.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[bool, None, IResolvable]

variables

AWS::Serverless::Api.Variables.

see :see: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi

Return type

Union[IResolvable, None, Mapping[str, str]]