Skip to content
v2.278.0

ComponentReference Struct ​

A reference to a Component resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as interfaces_amplifyuibuilder } from 'aws-cdk-lib/interfaces';
const componentReference: interfaces_amplifyuibuilder.ComponentReference = {
  appId: 'appId',
  componentId: 'componentId',
  environmentName: 'environmentName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_amplifyuibuilder as interfaces_amplifyuibuilder

component_reference = interfaces_amplifyuibuilder.ComponentReference(
    app_id="appId",
    component_id="componentId",
    environment_name="environmentName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.amplifyuibuilder.*;

ComponentReference componentReference = ComponentReference.builder()
        .appId("appId")
        .componentId("componentId")
        .environmentName("environmentName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.AmplifyUIBuilder;

var componentReference = new ComponentReference {
    AppId = "appId",
    ComponentId = "componentId",
    EnvironmentName = "environmentName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

componentReference := &ComponentReference{
	AppId: jsii.String("appId"),
	ComponentId: jsii.String("componentId"),
	EnvironmentName: jsii.String("environmentName"),
}

Properties ​

appIdstringapp_idstrappIdStringAppIdstringAppId*string required #
The AppId of the Component resource.
componentIdstringcomponent_idstrcomponentIdStringComponentIdstringComponentId*string required #
The Id of the Component resource.
environmentNamestringenvironment_namestrenvironmentNameStringEnvironmentNamestringEnvironmentName*string required #
The EnvironmentName of the Component resource.