# CfnGroupProps

Properties for defining a `CfnGroup`.

Used as props by: [CfnGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnGroup.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 tags: any;
const cfnGroupProps: greengrass.CfnGroupProps = {
  name: 'name',

  // the properties below are optional
  initialVersion: {
    connectorDefinitionVersionArn: 'connectorDefinitionVersionArn',
    coreDefinitionVersionArn: 'coreDefinitionVersionArn',
    deviceDefinitionVersionArn: 'deviceDefinitionVersionArn',
    functionDefinitionVersionArn: 'functionDefinitionVersionArn',
    loggerDefinitionVersionArn: 'loggerDefinitionVersionArn',
    resourceDefinitionVersionArn: 'resourceDefinitionVersionArn',
    subscriptionDefinitionVersionArn: 'subscriptionDefinitionVersionArn',
  },
  roleArn: 'roleArn',
  tags: tags,
};
```

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

# tags: Any

cfn_group_props = greengrass.CfnGroupProps(
    name="name",

    # the properties below are optional
    initial_version=greengrass.CfnGroup.GroupVersionProperty(
        connector_definition_version_arn="connectorDefinitionVersionArn",
        core_definition_version_arn="coreDefinitionVersionArn",
        device_definition_version_arn="deviceDefinitionVersionArn",
        function_definition_version_arn="functionDefinitionVersionArn",
        logger_definition_version_arn="loggerDefinitionVersionArn",
        resource_definition_version_arn="resourceDefinitionVersionArn",
        subscription_definition_version_arn="subscriptionDefinitionVersionArn"
    ),
    role_arn="roleArn",
    tags=tags
)
```

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 tags;

CfnGroupProps cfnGroupProps = CfnGroupProps.builder()
        .name("name")

        // the properties below are optional
        .initialVersion(GroupVersionProperty.builder()
                .connectorDefinitionVersionArn("connectorDefinitionVersionArn")
                .coreDefinitionVersionArn("coreDefinitionVersionArn")
                .deviceDefinitionVersionArn("deviceDefinitionVersionArn")
                .functionDefinitionVersionArn("functionDefinitionVersionArn")
                .loggerDefinitionVersionArn("loggerDefinitionVersionArn")
                .resourceDefinitionVersionArn("resourceDefinitionVersionArn")
                .subscriptionDefinitionVersionArn("subscriptionDefinitionVersionArn")
                .build())
        .roleArn("roleArn")
        .tags(tags)
        .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.AWS.Greengrass;

var tags;

var cfnGroupProps = new CfnGroupProps {
    Name = "name",

    // the properties below are optional
    InitialVersion = new GroupVersionProperty {
        ConnectorDefinitionVersionArn = "connectorDefinitionVersionArn",
        CoreDefinitionVersionArn = "coreDefinitionVersionArn",
        DeviceDefinitionVersionArn = "deviceDefinitionVersionArn",
        FunctionDefinitionVersionArn = "functionDefinitionVersionArn",
        LoggerDefinitionVersionArn = "loggerDefinitionVersionArn",
        ResourceDefinitionVersionArn = "resourceDefinitionVersionArn",
        SubscriptionDefinitionVersionArn = "subscriptionDefinitionVersionArn"
    },
    RoleArn = "roleArn",
    Tags = tags
};
```

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"

var tags interface{}

cfnGroupProps := &CfnGroupProps{
	Name: jsii.String("name"),

	// the properties below are optional
	InitialVersion: &GroupVersionProperty{
		ConnectorDefinitionVersionArn: jsii.String("connectorDefinitionVersionArn"),
		CoreDefinitionVersionArn: jsii.String("coreDefinitionVersionArn"),
		DeviceDefinitionVersionArn: jsii.String("deviceDefinitionVersionArn"),
		FunctionDefinitionVersionArn: jsii.String("functionDefinitionVersionArn"),
		LoggerDefinitionVersionArn: jsii.String("loggerDefinitionVersionArn"),
		ResourceDefinitionVersionArn: jsii.String("resourceDefinitionVersionArn"),
		SubscriptionDefinitionVersionArn: jsii.String("subscriptionDefinitionVersionArn"),
	},
	RoleArn: jsii.String("roleArn"),
	Tags: tags,
}
```

## Properties

- `initialVersion`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGroup.GroupVersionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnGroup.GroupVersionProperty.html) — The group version to include when the group is created.

  A group version references the Amazon Resource Name (ARN) of a core definition version, device definition version, subscription definition version, and other version types. The group version must reference a core definition version that contains one core. Other version types are optionally included, depending on your business need.

  > To associate a group version after the group is created, create an [`AWS::Greengrass::GroupVersion`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-groupversion.html) resource and specify the ID of this group.

- `name`: string (required) — The name of the group.

- `roleArn`: string — The Amazon Resource Name (ARN) of the IAM role attached to the group.

  This role contains the permissions that Lambda functions and connectors use to interact with other AWS services.

- `tags`: any — Application-specific metadata to attach to the group.

  You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see [Tagging Your AWS IoT Greengrass Resources](https://docs.aws.amazon.com/greengrass/v1/developerguide/tagging.html) in the *Developer Guide* .

  This `Json` property type is processed as a map of key-value pairs. It uses the following format, which is different from most `Tags` implementations in CloudFormation templates.

  ```json
  "Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
  }
  ```
