# IamFederationConfigOptionsProperty

Describes IAM federation options for an OpenSearch Serverless security configuration in the form of a key-value map.

These options define how OpenSearch Serverless integrates with external identity providers using federation.

- Source: Generated at build time
- Type last changed: v2.217.0 · 25 Sep 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const iamFederationConfigOptionsProperty: opensearchserverless.CfnSecurityConfig.IamFederationConfigOptionsProperty = {
  groupAttribute: 'groupAttribute',
  userAttribute: 'userAttribute',
};
```

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_opensearchserverless as opensearchserverless

iam_federation_config_options_property = opensearchserverless.CfnSecurityConfig.IamFederationConfigOptionsProperty(
    group_attribute="groupAttribute",
    user_attribute="userAttribute"
)
```

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

IamFederationConfigOptionsProperty iamFederationConfigOptionsProperty = IamFederationConfigOptionsProperty.builder()
        .groupAttribute("groupAttribute")
        .userAttribute("userAttribute")
        .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.OpenSearchServerless;

var iamFederationConfigOptionsProperty = new IamFederationConfigOptionsProperty {
    GroupAttribute = "groupAttribute",
    UserAttribute = "userAttribute"
};
```

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"

iamFederationConfigOptionsProperty := &IamFederationConfigOptionsProperty{
	GroupAttribute: jsii.String("groupAttribute"),
	UserAttribute: jsii.String("userAttribute"),
}
```

## Properties

- `groupAttribute`: string — The group attribute for this IAM federation integration.

  This attribute is used to map identity provider groups to OpenSearch Serverless permissions.

- `userAttribute`: string — The user attribute for this IAM federation integration.

  This attribute is used to identify users in the federated authentication process.
