# ObjectStorageFederatedIdentityConfigProperty

Specifies the identity federation configuration that DataSync uses to access your object storage location using an OpenID Connect (OIDC) token.

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const objectStorageFederatedIdentityConfigProperty: datasync.CfnLocationObjectStorage.ObjectStorageFederatedIdentityConfigProperty = {
  awsIamRole: 'awsIamRole',
  externalIdentity: {
    googleOidc: {
      identityPoolName: 'identityPoolName',
      identityProviderName: 'identityProviderName',
      projectName: 'projectName',
      projectNumber: 'projectNumber',
    },
  },
};
```

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_datasync as datasync

object_storage_federated_identity_config_property = datasync.CfnLocationObjectStorage.ObjectStorageFederatedIdentityConfigProperty(
    aws_iam_role="awsIamRole",
    external_identity=datasync.CfnLocationObjectStorage.ObjectStorageExternalIdentityConfigProperty(
        google_oidc=datasync.CfnLocationObjectStorage.GoogleOidcConfigProperty(
            identity_pool_name="identityPoolName",
            identity_provider_name="identityProviderName",
            project_name="projectName",
            project_number="projectNumber"
        )
    )
)
```

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

ObjectStorageFederatedIdentityConfigProperty objectStorageFederatedIdentityConfigProperty = ObjectStorageFederatedIdentityConfigProperty.builder()
        .awsIamRole("awsIamRole")
        .externalIdentity(ObjectStorageExternalIdentityConfigProperty.builder()
                .googleOidc(GoogleOidcConfigProperty.builder()
                        .identityPoolName("identityPoolName")
                        .identityProviderName("identityProviderName")
                        .projectName("projectName")
                        .projectNumber("projectNumber")
                        .build())
                .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.DataSync;

var objectStorageFederatedIdentityConfigProperty = new ObjectStorageFederatedIdentityConfigProperty {
    AwsIamRole = "awsIamRole",
    ExternalIdentity = new ObjectStorageExternalIdentityConfigProperty {
        GoogleOidc = new GoogleOidcConfigProperty {
            IdentityPoolName = "identityPoolName",
            IdentityProviderName = "identityProviderName",
            ProjectName = "projectName",
            ProjectNumber = "projectNumber"
        }
    }
};
```

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"

objectStorageFederatedIdentityConfigProperty := &ObjectStorageFederatedIdentityConfigProperty{
	AwsIamRole: jsii.String("awsIamRole"),
	ExternalIdentity: &ObjectStorageExternalIdentityConfigProperty{
		GoogleOidc: &GoogleOidcConfigProperty{
			IdentityPoolName: jsii.String("identityPoolName"),
			IdentityProviderName: jsii.String("identityProviderName"),
			ProjectName: jsii.String("projectName"),
			ProjectNumber: jsii.String("projectNumber"),
		},
	},
}
```

## Properties

- `awsIamRole`: string — Specifies the ARN of the AWS Identity and Access Management (IAM) role that DataSync assumes to mint the OIDC token used to authenticate with the identity provider.

- `externalIdentity`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLocationObjectStorage.ObjectStorageExternalIdentityConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datasync.CfnLocationObjectStorage.ObjectStorageExternalIdentityConfigProperty.html) — Specifies the external (non-AWS) identity provider that DataSync federates with to access your object storage location.
