# SAMLPrivateKeyProperty

Contains the private keys for the SAML provider.

This data type is used as a response element in the [GetSAMLProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetSAMLProvider.html) operation.

- Source: Generated at build time
- Type last changed: v2.183.0 · 12 Mar 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_iam as iam } from 'aws-cdk-lib';
const sAMLPrivateKeyProperty: iam.CfnSAMLProvider.SAMLPrivateKeyProperty = {
  keyId: 'keyId',
  timestamp: 'timestamp',
};
```

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_iam as iam

s_aml_private_key_property = iam.CfnSAMLProvider.SAMLPrivateKeyProperty(
    key_id="keyId",
    timestamp="timestamp"
)
```

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

SAMLPrivateKeyProperty sAMLPrivateKeyProperty = SAMLPrivateKeyProperty.builder()
        .keyId("keyId")
        .timestamp("timestamp")
        .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.IAM;

var sAMLPrivateKeyProperty = new SAMLPrivateKeyProperty {
    KeyId = "keyId",
    Timestamp = "timestamp"
};
```

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"

sAMLPrivateKeyProperty := &SAMLPrivateKeyProperty{
	KeyId: jsii.String("keyId"),
	Timestamp: jsii.String("timestamp"),
}
```

## Properties

- `keyId`: string (required) — The unique identifier for the SAML private key.

- `timestamp`: string (required) — The date and time, in [ISO 8601 date-time](https://docs.aws.amazon.com/http://www.iso.org/iso/iso8601) format, when the private key was uploaded.
