# CfnConnectorDefinitionVersionProps

Struct · External

Properties for defining a `CfnConnectorDefinitionVersion`.

Used as props by: [CfnConnectorDefinitionVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnConnectorDefinitionVersion.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';

declare const parameters: any;
const cfnConnectorDefinitionVersionProps: greengrass.CfnConnectorDefinitionVersionProps = {
  connectorDefinitionId: 'connectorDefinitionId',
  connectors: [{
    connectorArn: 'connectorArn',
    id: 'id',

    // the properties below are optional
    parameters: parameters,
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrass as greengrass

# parameters: Any

cfn_connector_definition_version_props = greengrass.CfnConnectorDefinitionVersionProps(
    connector_definition_id="connectorDefinitionId",
    connectors=[greengrass.CfnConnectorDefinitionVersion.ConnectorProperty(
        connector_arn="connectorArn",
        id="id",

        # the properties below are optional
        parameters=parameters
    )]
)
```

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.services.greengrass.*;

Object parameters;

CfnConnectorDefinitionVersionProps cfnConnectorDefinitionVersionProps = CfnConnectorDefinitionVersionProps.builder()
        .connectorDefinitionId("connectorDefinitionId")
        .connectors(List.of(ConnectorProperty.builder()
                .connectorArn("connectorArn")
                .id("id")

                // the properties below are optional
                .parameters(parameters)
                .build()))
        .build();
```

C#:

```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.AWS.Greengrass;

var parameters;

var cfnConnectorDefinitionVersionProps = new CfnConnectorDefinitionVersionProps {
    ConnectorDefinitionId = "connectorDefinitionId",
    Connectors = new [] { new ConnectorProperty {
        ConnectorArn = "connectorArn",
        Id = "id",

        // the properties below are optional
        Parameters = parameters
    } }
};
```

Go:

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

var parameters interface{}

cfnConnectorDefinitionVersionProps := &CfnConnectorDefinitionVersionProps{
	ConnectorDefinitionId: jsii.String("connectorDefinitionId"),
	Connectors: []interface{}{
		&ConnectorProperty{
			ConnectorArn: jsii.String("connectorArn"),
			Id: jsii.String("id"),

			// the properties below are optional
			Parameters: parameters,
		},
	},
}
```

## Properties

- `connectorDefinitionId`: string (required) — The ID of the connector definition associated with this version.

  This value is a GUID.

- `connectors`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnectorDefinitionVersion.ConnectorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnConnectorDefinitionVersion.ConnectorProperty.html)[] (required) — The connectors in this version.

  Only one instance of a given connector can be added to the connector definition version at a time.
