# CfnIdentityProviderProps

Properties for defining a `CfnIdentityProvider`.

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

- Source: Generated at build time
- Type last changed: v2.161.0 · 4 Oct 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const cfnIdentityProviderProps: workspacesweb.CfnIdentityProviderProps = {
  identityProviderDetails: {
    identityProviderDetailsKey: 'identityProviderDetails',
  },
  identityProviderName: 'identityProviderName',
  identityProviderType: 'identityProviderType',

  // the properties below are optional
  portalArn: 'portalArn',
  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_workspacesweb as workspacesweb

cfn_identity_provider_props = workspacesweb.CfnIdentityProviderProps(
    identity_provider_details={
        "identity_provider_details_key": "identityProviderDetails"
    },
    identity_provider_name="identityProviderName",
    identity_provider_type="identityProviderType",

    # the properties below are optional
    portal_arn="portalArn",
    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.workspacesweb.*;

CfnIdentityProviderProps cfnIdentityProviderProps = CfnIdentityProviderProps.builder()
        .identityProviderDetails(Map.of(
                "identityProviderDetailsKey", "identityProviderDetails"))
        .identityProviderName("identityProviderName")
        .identityProviderType("identityProviderType")

        // the properties below are optional
        .portalArn("portalArn")
        .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.WorkSpacesWeb;

var cfnIdentityProviderProps = new CfnIdentityProviderProps {
    IdentityProviderDetails = new Dictionary<string, string> {
        { "identityProviderDetailsKey", "identityProviderDetails" }
    },
    IdentityProviderName = "identityProviderName",
    IdentityProviderType = "identityProviderType",

    // the properties below are optional
    PortalArn = "portalArn",
    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"

cfnIdentityProviderProps := &CfnIdentityProviderProps{
	IdentityProviderDetails: map[string]*string{
		"identityProviderDetailsKey": jsii.String("identityProviderDetails"),
	},
	IdentityProviderName: jsii.String("identityProviderName"),
	IdentityProviderType: jsii.String("identityProviderType"),

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

## Properties

- `identityProviderDetails`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } (required) — The identity provider details. The following list describes the provider detail keys for each identity provider type.

  - For Google and Login with Amazon:

  - `client_id`
  - `client_secret`
  - `authorize_scopes`
  - For Facebook:

  - `client_id`
  - `client_secret`
  - `authorize_scopes`
  - `api_version`
  - For Sign in with Apple:

  - `client_id`
  - `team_id`
  - `key_id`
  - `private_key`
  - `authorize_scopes`
  - For OIDC providers:

  - `client_id`
  - `client_secret`
  - `attributes_request_method`
  - `oidc_issuer`
  - `authorize_scopes`
  - `authorize_url` *if not available from discovery URL specified by oidc_issuer key*
  - `token_url` *if not available from discovery URL specified by oidc_issuer key*
  - `attributes_url` *if not available from discovery URL specified by oidc_issuer key*
  - `jwks_uri` *if not available from discovery URL specified by oidc_issuer key*
  - For SAML providers:

  - `MetadataFile` OR `MetadataURL`
  - `IDPSignout` (boolean) *optional*
  - `IDPInit` (boolean) *optional*
  - `RequestSigningAlgorithm` (string) *optional* - Only accepts `rsa-sha256`
  - `EncryptedResponses` (boolean) *optional*

- `identityProviderName`: string (required) — The identity provider name.

- `identityProviderType`: string (required) — The identity provider type.

- `portalArn`: string — The ARN of the identity provider.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[]
