Class CfnResource
java.lang.Object
software.amazon.smithy.aws.cloudformation.traits.CfnResource
- All Implemented Interfaces:
ToSmithyBuilder<CfnResource>
Contains extracted resource information.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnResource.Builder
builder()
Get a list of sets of member shape ids, each set can be used to identify the CloudFormation resource in addition to its primary identifier(s).Get create-specifiable-only property definitions of the CloudFormation resource.Get members that have been explicitly excluded from the CloudFormation resource.Gets a set of identifier names that represent the primary way to identify a CloudFormation resource.Get all property definitions of the CloudFormation resource.getProperty
(String propertyName) Gets the definition of the specified property of the CloudFormation resource.Get read-only property definitions of the CloudFormation resource.Get write-only property definitions of the CloudFormation resource.Take this object and create a builder that contains all of the current property values of this object.
-
Method Details
-
builder
-
getProperties
Get all property definitions of the CloudFormation resource.Properties excluded by the
cfnExcludedProperty
trait are not returned.- Returns:
- Returns all members that map to CloudFormation resource properties.
- See Also:
-
getProperty
Gets the definition of the specified property of the CloudFormation resource.An empty
Optional
will be returned if the requested property has been excluded by thecfnExcludedProperty
trait.- Parameters:
propertyName
- Name of the property to retrieve- Returns:
- The property definition.
- See Also:
-
getCreateOnlyProperties
Get create-specifiable-only property definitions of the CloudFormation resource. These properties can be specified only during resource creation and can be returned in aread
orlist
request.- Returns:
- Returns create-only member names that map to CloudFormation resource properties.
-
getReadOnlyProperties
Get read-only property definitions of the CloudFormation resource. These properties can be returned by aread
orlist
request, but cannot be set by the user.- Returns:
- Returns read-only member names that map to CloudFormation resource properties.
-
getWriteOnlyProperties
Get write-only property definitions of the CloudFormation resource. These properties can be specified by the user, but cannot be returned by aread
orlist
request.- Returns:
- Returns write-only member names that map to CloudFormation resource properties.
-
getExcludedProperties
Get members that have been explicitly excluded from the CloudFormation resource.- Returns:
- Returns members that have been excluded from a CloudFormation resource.
-
getPrimaryIdentifiers
Gets a set of identifier names that represent the primary way to identify a CloudFormation resource. This uniquely identifies an individual instance of the resource type, and can be one or more properties to represent composite-key identifiers.- Returns:
- Returns the identifier set primarily used to access a CloudFormation resource.
-
getAdditionalIdentifiers
Get a list of sets of member shape ids, each set can be used to identify the CloudFormation resource in addition to its primary identifier(s).- Returns:
- Returns identifier sets used to access a CloudFormation resource.
-
toBuilder
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<CfnResource>
- Returns:
- a builder for type T
-