Parameters: CompatibleArchitecturesList: Type: CommaDelimitedList Default: arm64,x86_64 CompatibleArchitecturesRef: Type: String Default: arm64 LayerNameParam: Type: String Default: SomeLayerName LayerLicenseInfo: Type: String Default: MIT-0 License LayerRuntimeList: Type: CommaDelimitedList LayerRuntimeRefString: Type: String Default: SomeRuntimeName Resources: LayerWithLicenseIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip LicenseInfo: !Ref LayerLicenseInfo LayerWithRuntimesIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip CompatibleRuntimes: Ref: LayerRuntimeList LayerWithSingleListRefRuntimesIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip CompatibleRuntimes: - Ref: LayerRuntimeRefString LayerWithMixedListRefRuntimesIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip CompatibleRuntimes: - Ref: LayerRuntimeString - SomeRuntimeNameString LayerWithNameIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip LayerName: !Ref LayerNameParam LayerWithSubNameIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip LayerName: !Sub layer-${LayerNameParam} LayerWithRefNameIntrinsicRegion: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip LayerName: !Ref 'AWS::Region' LayerWithSubNameIntrinsicRegion: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip LayerName: !Sub 'layer-${AWS::Region}' LayerWithArchitecturesIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip CompatibleArchitectures: Ref: CompatibleArchitecturesList LayerWithSingleListRefArchitecturesIntrinsic: Type: AWS::Serverless::LayerVersion Properties: ContentUri: s3://sam-demo-bucket/layer.zip CompatibleArchitectures: - Ref: CompatibleArchitecturesRef