Class CfnComponent.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent>
- Enclosing class:
CfnComponent
CfnComponent
.-
Method Summary
Modifier and TypeMethodDescriptionThe unique ID of the Amplify app associated with the component.bindingProperties
(Map<String, ? extends Object> bindingProperties) The information to connect a component's properties to data at runtime.bindingProperties
(IResolvable bindingProperties) The information to connect a component's properties to data at runtime.build()
A list of the component'sComponentChild
instances.children
(IResolvable children) A list of the component'sComponentChild
instances.collectionProperties
(Map<String, ? extends Object> collectionProperties) The data binding configuration for the component's properties.collectionProperties
(IResolvable collectionProperties) The data binding configuration for the component's properties.componentType
(String componentType) The type of the component.static CfnComponent.Builder
environmentName
(String environmentName) The name of the backend environment that is a part of the Amplify app.Describes the events that can be raised on the component.events
(IResolvable events) Describes the events that can be raised on the component.The name of the component.Describes the component's properties that can be overriden in a customized instance of the component.properties
(Map<String, ? extends Object> properties) Describes the component's properties.properties
(IResolvable properties) Describes the component's properties.schemaVersion
(String schemaVersion) The schema version of the component when it was imported.The unique ID of the component in its original source system, such as Figma.One or more key-value pairs to use when tagging the component.A list of the component's variants.variants
(IResolvable variants) A list of the component's variants.
-
Method Details
-
create
@Stability(Stable) public static CfnComponent.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnComponent.Builder
.
-
appId
The unique ID of the Amplify app associated with the component.- Parameters:
appId
- The unique ID of the Amplify app associated with the component. This parameter is required.- Returns:
this
- See Also:
-
bindingProperties
The information to connect a component's properties to data at runtime.You can't specify
tags
as a valid property forbindingProperties
.- Parameters:
bindingProperties
- The information to connect a component's properties to data at runtime. This parameter is required.- Returns:
this
- See Also:
-
bindingProperties
@Stability(Stable) public CfnComponent.Builder bindingProperties(Map<String, ? extends Object> bindingProperties) The information to connect a component's properties to data at runtime.You can't specify
tags
as a valid property forbindingProperties
.- Parameters:
bindingProperties
- The information to connect a component's properties to data at runtime. This parameter is required.- Returns:
this
- See Also:
-
children
A list of the component'sComponentChild
instances.- Parameters:
children
- A list of the component'sComponentChild
instances. This parameter is required.- Returns:
this
- See Also:
-
children
A list of the component'sComponentChild
instances.- Parameters:
children
- A list of the component'sComponentChild
instances. This parameter is required.- Returns:
this
- See Also:
-
collectionProperties
@Stability(Stable) public CfnComponent.Builder collectionProperties(IResolvable collectionProperties) The data binding configuration for the component's properties.Use this for a collection component. You can't specify
tags
as a valid property forcollectionProperties
.- Parameters:
collectionProperties
- The data binding configuration for the component's properties. This parameter is required.- Returns:
this
- See Also:
-
collectionProperties
@Stability(Stable) public CfnComponent.Builder collectionProperties(Map<String, ? extends Object> collectionProperties) The data binding configuration for the component's properties.Use this for a collection component. You can't specify
tags
as a valid property forcollectionProperties
.- Parameters:
collectionProperties
- The data binding configuration for the component's properties. This parameter is required.- Returns:
this
- See Also:
-
componentType
The type of the component.This can be an Amplify custom UI component or another custom component.
- Parameters:
componentType
- The type of the component. This parameter is required.- Returns:
this
- See Also:
-
environmentName
The name of the backend environment that is a part of the Amplify app.- Parameters:
environmentName
- The name of the backend environment that is a part of the Amplify app. This parameter is required.- Returns:
this
- See Also:
-
events
Describes the events that can be raised on the component.Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
- Parameters:
events
- Describes the events that can be raised on the component. This parameter is required.- Returns:
this
- See Also:
-
events
Describes the events that can be raised on the component.Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
- Parameters:
events
- Describes the events that can be raised on the component. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the component.- Parameters:
name
- The name of the component. This parameter is required.- Returns:
this
- See Also:
-
overrides
Describes the component's properties that can be overriden in a customized instance of the component.You can't specify
tags
as a valid property foroverrides
.- Parameters:
overrides
- Describes the component's properties that can be overriden in a customized instance of the component. This parameter is required.- Returns:
this
- See Also:
-
properties
Describes the component's properties.You can't specify
tags
as a valid property forproperties
.- Parameters:
properties
- Describes the component's properties. This parameter is required.- Returns:
this
- See Also:
-
properties
Describes the component's properties.You can't specify
tags
as a valid property forproperties
.- Parameters:
properties
- Describes the component's properties. This parameter is required.- Returns:
this
- See Also:
-
schemaVersion
The schema version of the component when it was imported.- Parameters:
schemaVersion
- The schema version of the component when it was imported. This parameter is required.- Returns:
this
- See Also:
-
sourceId
The unique ID of the component in its original source system, such as Figma.- Parameters:
sourceId
- The unique ID of the component in its original source system, such as Figma. This parameter is required.- Returns:
this
- See Also:
-
tags
One or more key-value pairs to use when tagging the component.- Parameters:
tags
- One or more key-value pairs to use when tagging the component. This parameter is required.- Returns:
this
- See Also:
-
variants
A list of the component's variants.A variant is a unique style configuration of a main component.
- Parameters:
variants
- A list of the component's variants. This parameter is required.- Returns:
this
- See Also:
-
variants
A list of the component's variants.A variant is a unique style configuration of a main component.
- Parameters:
variants
- A list of the component's variants. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponent>
- Returns:
- a newly built instance of
CfnComponent
.
-