# CfnCertificateProviderProps

Properties for defining a `CfnCertificateProvider`.

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

- Source: Generated at build time
- Type last changed: v2.117.0 · 27 Dec 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_iot as iot } from 'aws-cdk-lib';
const cfnCertificateProviderProps: iot.CfnCertificateProviderProps = {
  accountDefaultForOperations: ['accountDefaultForOperations'],
  lambdaFunctionArn: 'lambdaFunctionArn',

  // the properties below are optional
  certificateProviderName: 'certificateProviderName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

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

cfn_certificate_provider_props = iot.CfnCertificateProviderProps(
    account_default_for_operations=["accountDefaultForOperations"],
    lambda_function_arn="lambdaFunctionArn",

    # the properties below are optional
    certificate_provider_name="certificateProviderName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnCertificateProviderProps cfnCertificateProviderProps = CfnCertificateProviderProps.builder()
        .accountDefaultForOperations(List.of("accountDefaultForOperations"))
        .lambdaFunctionArn("lambdaFunctionArn")

        // the properties below are optional
        .certificateProviderName("certificateProviderName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.IoT;

var cfnCertificateProviderProps = new CfnCertificateProviderProps {
    AccountDefaultForOperations = new [] { "accountDefaultForOperations" },
    LambdaFunctionArn = "lambdaFunctionArn",

    // the properties below are optional
    CertificateProviderName = "certificateProviderName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnCertificateProviderProps := &CfnCertificateProviderProps{
	AccountDefaultForOperations: []*string{
		jsii.String("accountDefaultForOperations"),
	},
	LambdaFunctionArn: jsii.String("lambdaFunctionArn"),

	// the properties below are optional
	CertificateProviderName: jsii.String("certificateProviderName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `accountDefaultForOperations`: string[] (required) — A list of the operations that the certificate provider will use to generate certificates.

  Valid value: `CreateCertificateFromCsr` .

- `certificateProviderName`: string — The name of the certificate provider.

- `lambdaFunctionArn`: string (required) — The ARN of the Lambda function.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Metadata that can be used to manage the certificate provider.
