CfnComponentProps Struct
Properties for defining a CfnComponent.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
python
java
csharp
// Install: dotnet add package Amazon.CDK.Lib
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
Properties
The unique ID of the Amplify app associated with the component.
bindingPropertiesoptionalIResolvable | { [key: string]: IResolvable | CfnComponent.binding_propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ComponentBindingPropertiesValueProperty]]]bindingPropertiesoptionalIResolvableBindingPropertiesoptionalIResolvableBindingPropertiesoptionalinterface{} #The information to connect a component's properties to data at runtime.
You can't specify tags as a valid property for bindingProperties .
childrenoptionalIResolvable | IResolvable | CfnComponent.childrenoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ComponentChildProperty]]]childrenoptionalIResolvableChildrenoptionalIResolvableChildrenoptionalinterface{} #A list of the component's `ComponentChild` instances.
collectionPropertiesoptionalIResolvable | { [key: string]: IResolvable | CfnComponent.collection_propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ComponentDataConfigurationProperty]]]collectionPropertiesoptionalIResolvableCollectionPropertiesoptionalIResolvableCollectionPropertiesoptionalinterface{} #The data binding configuration for the component's properties.
Use this for a collection component. You can't specify tags as a valid property for collectionProperties .
componentTypeoptionalstringcomponent_typeoptionalstrcomponentTypeoptionalStringComponentTypeoptionalstringComponentTypeoptional*string #The type of the component.
This can be an Amplify custom UI component or another custom component.
environmentNameoptionalstringenvironment_nameoptionalstrenvironmentNameoptionalStringEnvironmentNameoptionalstringEnvironmentNameoptional*string #The name of the backend environment that is a part of the Amplify app.
eventsoptionalIResolvable | { [key: string]: IResolvable | CfnComponent.eventsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ComponentEventProperty]]]eventsoptionalIResolvableEventsoptionalIResolvableEventsoptionalinterface{} #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.
The name of the component.
overridesoptionalanyoverridesoptionalAnyoverridesoptionalObjectOverridesoptionalobjectOverridesoptionalinterface{} #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 for overrides .
propertiesoptionalIResolvable | { [key: string]: IResolvable | CfnComponent.propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ComponentPropertyProperty]]]propertiesoptionalIResolvablePropertiesoptionalIResolvablePropertiesoptionalinterface{} #Describes the component's properties.
You can't specify tags as a valid property for properties .
schemaVersionoptionalstringschema_versionoptionalstrschemaVersionoptionalStringSchemaVersionoptionalstringSchemaVersionoptional*string #The schema version of the component when it was imported.
sourceIdoptionalstringsource_idoptionalstrsourceIdoptionalStringSourceIdoptionalstringSourceIdoptional*string #The unique ID of the component in its original source system, such as Figma.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #One or more key-value pairs to use when tagging the component.
variantsoptionalIResolvable | IResolvable | CfnComponent.variantsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ComponentVariantProperty]]]variantsoptionalIResolvableVariantsoptionalIResolvableVariantsoptionalinterface{} #A list of the component's variants.
A variant is a unique style configuration of a main component.