public static final class CfnComponent.Builder
extends java.lang.Object
CfnComponent
.Modifier and Type | Method and Description |
---|---|
CfnComponent.Builder |
bindingProperties(IResolvable bindingProperties)
The information to connect a component's properties to data at runtime.
|
CfnComponent.Builder |
bindingProperties(java.util.Map<java.lang.String,? extends java.lang.Object> bindingProperties)
The information to connect a component's properties to data at runtime.
|
CfnComponent |
build() |
CfnComponent.Builder |
children(IResolvable children)
A list of the component's `ComponentChild` instances.
|
CfnComponent.Builder |
children(java.util.List<? extends java.lang.Object> children)
A list of the component's `ComponentChild` instances.
|
CfnComponent.Builder |
collectionProperties(IResolvable collectionProperties)
The data binding configuration for the component's properties.
|
CfnComponent.Builder |
collectionProperties(java.util.Map<java.lang.String,? extends java.lang.Object> collectionProperties)
The data binding configuration for the component's properties.
|
CfnComponent.Builder |
componentType(java.lang.String componentType)
The type of the component.
|
static CfnComponent.Builder |
create(Construct scope,
java.lang.String id) |
CfnComponent.Builder |
events(IResolvable events)
Describes the events that can be raised on the component.
|
CfnComponent.Builder |
events(java.util.Map<java.lang.String,? extends java.lang.Object> events)
Describes the events that can be raised on the component.
|
CfnComponent.Builder |
name(java.lang.String name)
The name of the component.
|
CfnComponent.Builder |
overrides(IResolvable overrides)
Describes the component's properties that can be overriden in a customized instance of the component.
|
CfnComponent.Builder |
overrides(java.util.Map<java.lang.String,? extends java.lang.Object> overrides)
Describes the component's properties that can be overriden in a customized instance of the component.
|
CfnComponent.Builder |
properties(IResolvable properties)
Describes the component's properties.
|
CfnComponent.Builder |
properties(java.util.Map<java.lang.String,? extends java.lang.Object> properties)
Describes the component's properties.
|
CfnComponent.Builder |
schemaVersion(java.lang.String schemaVersion)
The schema version of the component when it was imported.
|
CfnComponent.Builder |
sourceId(java.lang.String sourceId)
The unique ID of the component in its original source system, such as Figma.
|
CfnComponent.Builder |
tags(java.util.Map<java.lang.String,java.lang.String> tags)
One or more key-value pairs to use when tagging the component.
|
CfnComponent.Builder |
variants(IResolvable variants)
A list of the component's variants.
|
CfnComponent.Builder |
variants(java.util.List<? extends java.lang.Object> variants)
A list of the component's variants.
|
public static CfnComponent.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnComponent.ActionParametersProperty.Builder
.public CfnComponent.Builder bindingProperties(java.util.Map<java.lang.String,? extends java.lang.Object> bindingProperties)
You can't specify tags
as a valid property for bindingProperties
.
bindingProperties
- The information to connect a component's properties to data at runtime. This parameter is required.this
public CfnComponent.Builder bindingProperties(IResolvable bindingProperties)
You can't specify tags
as a valid property for bindingProperties
.
bindingProperties
- The information to connect a component's properties to data at runtime. This parameter is required.this
public CfnComponent.Builder componentType(java.lang.String componentType)
This can be an Amplify custom UI component or another custom component.
componentType
- The type of the component. This parameter is required.this
public CfnComponent.Builder name(java.lang.String name)
name
- The name of the component. This parameter is required.this
public CfnComponent.Builder overrides(IResolvable overrides)
You can't specify tags
as a valid property for overrides
.
overrides
- Describes the component's properties that can be overriden in a customized instance of the component. This parameter is required.this
public CfnComponent.Builder overrides(java.util.Map<java.lang.String,? extends java.lang.Object> overrides)
You can't specify tags
as a valid property for overrides
.
overrides
- Describes the component's properties that can be overriden in a customized instance of the component. This parameter is required.this
public CfnComponent.Builder properties(IResolvable properties)
You can't specify tags
as a valid property for properties
.
properties
- Describes the component's properties. This parameter is required.this
public CfnComponent.Builder properties(java.util.Map<java.lang.String,? extends java.lang.Object> properties)
You can't specify tags
as a valid property for properties
.
properties
- Describes the component's properties. This parameter is required.this
public CfnComponent.Builder variants(IResolvable variants)
A variant is a unique style configuration of a main component.
variants
- A list of the component's variants. This parameter is required.this
public CfnComponent.Builder variants(java.util.List<? extends java.lang.Object> variants)
A variant is a unique style configuration of a main component.
variants
- A list of the component's variants. This parameter is required.this
public CfnComponent.Builder children(IResolvable children)
children
- A list of the component's `ComponentChild` instances. This parameter is required.this
public CfnComponent.Builder children(java.util.List<? extends java.lang.Object> children)
children
- A list of the component's `ComponentChild` instances. This parameter is required.this
public CfnComponent.Builder collectionProperties(IResolvable collectionProperties)
Use this for a collection component. You can't specify tags
as a valid property for collectionProperties
.
collectionProperties
- The data binding configuration for the component's properties. This parameter is required.this
public CfnComponent.Builder collectionProperties(java.util.Map<java.lang.String,? extends java.lang.Object> collectionProperties)
Use this for a collection component. You can't specify tags
as a valid property for collectionProperties
.
collectionProperties
- The data binding configuration for the component's properties. This parameter is required.this
public CfnComponent.Builder events(IResolvable events)
Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
events
- Describes the events that can be raised on the component. This parameter is required.this
public CfnComponent.Builder events(java.util.Map<java.lang.String,? extends java.lang.Object> events)
Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
events
- Describes the events that can be raised on the component. This parameter is required.this
public CfnComponent.Builder schemaVersion(java.lang.String schemaVersion)
schemaVersion
- The schema version of the component when it was imported. This parameter is required.this
public CfnComponent.Builder sourceId(java.lang.String sourceId)
sourceId
- The unique ID of the component in its original source system, such as Figma. This parameter is required.this
public CfnComponent.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
tags
- One or more key-value pairs to use when tagging the component. This parameter is required.this
public CfnComponent build()