@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceDefinition extends Object implements Serializable, Cloneable
A resource included in a generated template. This data type is used with the CreateGeneratedTemplate
and
UpdateGeneratedTemplate
API actions.
Constructor and Description |
---|
ResourceDefinition() |
Modifier and Type | Method and Description |
---|---|
ResourceDefinition |
addResourceIdentifierEntry(String key,
String value)
Add a single ResourceIdentifier entry
|
ResourceDefinition |
clearResourceIdentifierEntries()
Removes all the entries added into ResourceIdentifier.
|
ResourceDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getLogicalResourceId()
The logical resource id for this resource in the generated template.
|
Map<String,String> |
getResourceIdentifier()
A list of up to 256 key-value pairs that identifies the scanned resource.
|
String |
getResourceType()
The type of the resource, such as
AWS::DynamoDB::Table . |
int |
hashCode() |
void |
setLogicalResourceId(String logicalResourceId)
The logical resource id for this resource in the generated template.
|
void |
setResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies the scanned resource.
|
void |
setResourceType(String resourceType)
The type of the resource, such as
AWS::DynamoDB::Table . |
String |
toString()
Returns a string representation of this object.
|
ResourceDefinition |
withLogicalResourceId(String logicalResourceId)
The logical resource id for this resource in the generated template.
|
ResourceDefinition |
withResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies the scanned resource.
|
ResourceDefinition |
withResourceType(String resourceType)
The type of the resource, such as
AWS::DynamoDB::Table . |
public void setResourceType(String resourceType)
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC
generator supported resource types in the CloudFormation User Guide
resourceType
- The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources,
see IaC generator supported resource types in the CloudFormation User Guidepublic String getResourceType()
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC
generator supported resource types in the CloudFormation User Guide
AWS::DynamoDB::Table
. For the list of supported resources,
see IaC generator supported resource types in the CloudFormation User Guidepublic ResourceDefinition withResourceType(String resourceType)
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see IaC
generator supported resource types in the CloudFormation User Guide
resourceType
- The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources,
see IaC generator supported resource types in the CloudFormation User Guidepublic void setLogicalResourceId(String logicalResourceId)
The logical resource id for this resource in the generated template.
logicalResourceId
- The logical resource id for this resource in the generated template.public String getLogicalResourceId()
The logical resource id for this resource in the generated template.
public ResourceDefinition withLogicalResourceId(String logicalResourceId)
The logical resource id for this resource in the generated template.
logicalResourceId
- The logical resource id for this resource in the generated template.public Map<String,String> getResourceIdentifier()
A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the
primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a
AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value
pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
primaryIdentifier
list in the resource schema.) The value is the value of that primary
identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is
TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more
information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension
development.public void setResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the
primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a
AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value
pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
resourceIdentifier
- A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of
the primary identifiers for the resource. (Primary identifiers are specified in the
primaryIdentifier
list in the resource schema.) The value is the value of that primary
identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is
TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more
information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension
development.public ResourceDefinition withResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the
primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a
AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value
pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
resourceIdentifier
- A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of
the primary identifiers for the resource. (Primary identifiers are specified in the
primaryIdentifier
list in the resource schema.) The value is the value of that primary
identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is
TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more
information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension
development.public ResourceDefinition addResourceIdentifierEntry(String key, String value)
public ResourceDefinition clearResourceIdentifierEntries()
public String toString()
toString
in class Object
Object.toString()
public ResourceDefinition clone()