# ComponentReference

A reference to a Component resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `appId`: string (required) — The AppId of the Component resource.

- `componentId`: string (required) — The Id of the Component resource.

- `environmentName`: string (required) — The EnvironmentName of the Component resource.
