CfnSAMLProviderProps Struct
Properties for defining a CfnSAMLProvider.
| Source | |
|---|---|
| Type last changed |
Example
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 cfnSAMLProviderProps: iam.CfnSAMLProviderProps = {
addPrivateKey: 'addPrivateKey',
assertionEncryptionMode: 'assertionEncryptionMode',
name: 'name',
privateKeyList: [{
keyId: 'keyId',
timestamp: 'timestamp',
}],
removePrivateKey: 'removePrivateKey',
samlMetadataDocument: 'samlMetadataDocument',
tags: [{
key: 'key',
value: 'value',
}],
};
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_iam as iam
cfn_saml_provider_props = iam.CfnSAMLProviderProps(
add_private_key="addPrivateKey",
assertion_encryption_mode="assertionEncryptionMode",
name="name",
private_key_list=[iam.CfnSAMLProvider.SAMLPrivateKeyProperty(
key_id="keyId",
timestamp="timestamp"
)],
remove_private_key="removePrivateKey",
saml_metadata_document="samlMetadataDocument",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnSAMLProviderProps cfnSAMLProviderProps = CfnSAMLProviderProps.builder()
.addPrivateKey("addPrivateKey")
.assertionEncryptionMode("assertionEncryptionMode")
.name("name")
.privateKeyList(List.of(SAMLPrivateKeyProperty.builder()
.keyId("keyId")
.timestamp("timestamp")
.build()))
.removePrivateKey("removePrivateKey")
.samlMetadataDocument("samlMetadataDocument")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
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 cfnSAMLProviderProps = new CfnSAMLProviderProps {
AddPrivateKey = "addPrivateKey",
AssertionEncryptionMode = "assertionEncryptionMode",
Name = "name",
PrivateKeyList = new [] { new SAMLPrivateKeyProperty {
KeyId = "keyId",
Timestamp = "timestamp"
} },
RemovePrivateKey = "removePrivateKey",
SamlMetadataDocument = "samlMetadataDocument",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnSAMLProviderProps := &CfnSAMLProviderProps{
AddPrivateKey: jsii.String("addPrivateKey"),
AssertionEncryptionMode: jsii.String("assertionEncryptionMode"),
Name: jsii.String("name"),
PrivateKeyList: []interface{}{
&SAMLPrivateKeyProperty{
KeyId: jsii.String("keyId"),
Timestamp: jsii.String("timestamp"),
},
},
RemovePrivateKey: jsii.String("removePrivateKey"),
SamlMetadataDocument: jsii.String("samlMetadataDocument"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
addPrivateKeyoptionalstringadd_private_keyoptionalstraddPrivateKeyoptionalStringAddPrivateKeyoptionalstringAddPrivateKeyoptional*string #Specifies the new private key from your external identity provider.
The private key must be a .pem file that uses AES-GCM or AES-CBC encryption algorithm to decrypt SAML assertions.
assertionEncryptionModeoptionalstringassertion_encryption_modeoptionalstrassertionEncryptionModeoptionalStringAssertionEncryptionModeoptionalstringAssertionEncryptionModeoptional*string #Specifies the encryption setting for the SAML provider.
The name of the provider to create.
notes
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
privateKeyListoptionalIResolvable | IResolvable | CfnSAMLProvider.private_key_listoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SAMLPrivateKeyProperty]]]privateKeyListoptionalIResolvablePrivateKeyListoptionalIResolvablePrivateKeyListoptionalinterface{} #The private key metadata for the SAML provider.
removePrivateKeyoptionalstringremove_private_keyoptionalstrremovePrivateKeyoptionalStringRemovePrivateKeyoptionalstringRemovePrivateKeyoptional*string #The Key ID of the private key to remove.
samlMetadataDocumentoptionalstringsaml_metadata_documentoptionalstrsamlMetadataDocumentoptionalStringSamlMetadataDocumentoptionalstringSamlMetadataDocumentoptional*string #An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.
For more information, see About SAML 2.0-based federation in the IAM User Guide
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A list of tags that you want to attach to the new IAM SAML provider.
notes
Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.