# DefinitionProperty

The definition is where you specify all of the type-specific parameters.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_budgets as budgets } from 'aws-cdk-lib';
const definitionProperty: budgets.CfnBudgetsAction.DefinitionProperty = {
  iamActionDefinition: {
    policyArn: 'policyArn',

    // the properties below are optional
    groups: ['groups'],
    roles: ['roles'],
    users: ['users'],
  },
  scpActionDefinition: {
    policyId: 'policyId',
    targetIds: ['targetIds'],
  },
  ssmActionDefinition: {
    instanceIds: ['instanceIds'],
    region: 'region',
    subtype: 'subtype',
  },
};
```

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_budgets as budgets

definition_property = budgets.CfnBudgetsAction.DefinitionProperty(
    iam_action_definition=budgets.CfnBudgetsAction.IamActionDefinitionProperty(
        policy_arn="policyArn",

        # the properties below are optional
        groups=["groups"],
        roles=["roles"],
        users=["users"]
    ),
    scp_action_definition=budgets.CfnBudgetsAction.ScpActionDefinitionProperty(
        policy_id="policyId",
        target_ids=["targetIds"]
    ),
    ssm_action_definition=budgets.CfnBudgetsAction.SsmActionDefinitionProperty(
        instance_ids=["instanceIds"],
        region="region",
        subtype="subtype"
    )
)
```

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.budgets.*;

DefinitionProperty definitionProperty = DefinitionProperty.builder()
        .iamActionDefinition(IamActionDefinitionProperty.builder()
                .policyArn("policyArn")

                // the properties below are optional
                .groups(List.of("groups"))
                .roles(List.of("roles"))
                .users(List.of("users"))
                .build())
        .scpActionDefinition(ScpActionDefinitionProperty.builder()
                .policyId("policyId")
                .targetIds(List.of("targetIds"))
                .build())
        .ssmActionDefinition(SsmActionDefinitionProperty.builder()
                .instanceIds(List.of("instanceIds"))
                .region("region")
                .subtype("subtype")
                .build())
        .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.Budgets;

var definitionProperty = new DefinitionProperty {
    IamActionDefinition = new IamActionDefinitionProperty {
        PolicyArn = "policyArn",

        // the properties below are optional
        Groups = new [] { "groups" },
        Roles = new [] { "roles" },
        Users = new [] { "users" }
    },
    ScpActionDefinition = new ScpActionDefinitionProperty {
        PolicyId = "policyId",
        TargetIds = new [] { "targetIds" }
    },
    SsmActionDefinition = new SsmActionDefinitionProperty {
        InstanceIds = new [] { "instanceIds" },
        Region = "region",
        Subtype = "subtype"
    }
};
```

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"

definitionProperty := &DefinitionProperty{
	IamActionDefinition: &IamActionDefinitionProperty{
		PolicyArn: jsii.String("policyArn"),

		// the properties below are optional
		Groups: []*string{
			jsii.String("groups"),
		},
		Roles: []*string{
			jsii.String("roles"),
		},
		Users: []*string{
			jsii.String("users"),
		},
	},
	ScpActionDefinition: &ScpActionDefinitionProperty{
		PolicyId: jsii.String("policyId"),
		TargetIds: []*string{
			jsii.String("targetIds"),
		},
	},
	SsmActionDefinition: &SsmActionDefinitionProperty{
		InstanceIds: []*string{
			jsii.String("instanceIds"),
		},
		Region: jsii.String("region"),
		Subtype: jsii.String("subtype"),
	},
}
```

## Properties

- `iamActionDefinition`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudgetsAction.IamActionDefinitionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudgetsAction.IamActionDefinitionProperty.html) — The AWS Identity and Access Management ( IAM ) action definition details.

- `scpActionDefinition`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudgetsAction.ScpActionDefinitionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudgetsAction.ScpActionDefinitionProperty.html) — The service control policies (SCP) action definition details.

- `ssmActionDefinition`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudgetsAction.SsmActionDefinitionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudgetsAction.SsmActionDefinitionProperty.html) — The Amazon EC2 Systems Manager ( SSM ) action definition details.
