Class CfnSAMLProviderMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.iam.mixins.CfnSAMLProviderMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSAMLProviderMixinProps>
- Enclosing interface:
CfnSAMLProviderMixinProps
@Stability(Stable)
public static final class CfnSAMLProviderMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSAMLProviderMixinProps>
A builder for
CfnSAMLProviderMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPrivateKey(String addPrivateKey) Sets the value ofCfnSAMLProviderMixinProps.getAddPrivateKey()assertionEncryptionMode(String assertionEncryptionMode) Sets the value ofCfnSAMLProviderMixinProps.getAssertionEncryptionMode()build()Builds the configured instance.Sets the value ofCfnSAMLProviderMixinProps.getName()privateKeyList(List<? extends Object> privateKeyList) Sets the value ofCfnSAMLProviderMixinProps.getPrivateKeyList()privateKeyList(IResolvable privateKeyList) Sets the value ofCfnSAMLProviderMixinProps.getPrivateKeyList()removePrivateKey(String removePrivateKey) Sets the value ofCfnSAMLProviderMixinProps.getRemovePrivateKey()samlMetadataDocument(String samlMetadataDocument) Sets the value ofCfnSAMLProviderMixinProps.getSamlMetadataDocument()Sets the value ofCfnSAMLProviderMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addPrivateKey
Sets the value ofCfnSAMLProviderMixinProps.getAddPrivateKey()- Parameters:
addPrivateKey- 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.- Returns:
this
-
assertionEncryptionMode
@Stability(Stable) public CfnSAMLProviderMixinProps.Builder assertionEncryptionMode(String assertionEncryptionMode) Sets the value ofCfnSAMLProviderMixinProps.getAssertionEncryptionMode()- Parameters:
assertionEncryptionMode- Specifies the encryption setting for the SAML provider.- Returns:
this
-
name
Sets the value ofCfnSAMLProviderMixinProps.getName()- Parameters:
name- The name of the provider to create. 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: _+=,.@-- Returns:
this
-
privateKeyList
@Stability(Stable) public CfnSAMLProviderMixinProps.Builder privateKeyList(IResolvable privateKeyList) Sets the value ofCfnSAMLProviderMixinProps.getPrivateKeyList()- Parameters:
privateKeyList- The private key metadata for the SAML provider.- Returns:
this
-
privateKeyList
@Stability(Stable) public CfnSAMLProviderMixinProps.Builder privateKeyList(List<? extends Object> privateKeyList) Sets the value ofCfnSAMLProviderMixinProps.getPrivateKeyList()- Parameters:
privateKeyList- The private key metadata for the SAML provider.- Returns:
this
-
removePrivateKey
@Stability(Stable) public CfnSAMLProviderMixinProps.Builder removePrivateKey(String removePrivateKey) Sets the value ofCfnSAMLProviderMixinProps.getRemovePrivateKey()- Parameters:
removePrivateKey- The Key ID of the private key to remove.- Returns:
this
-
samlMetadataDocument
@Stability(Stable) public CfnSAMLProviderMixinProps.Builder samlMetadataDocument(String samlMetadataDocument) Sets the value ofCfnSAMLProviderMixinProps.getSamlMetadataDocument()- Parameters:
samlMetadataDocument- 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- Returns:
this
-
tags
Sets the value ofCfnSAMLProviderMixinProps.getTags()- Parameters:
tags- A list of tags that you want to attach to the new IAM SAML provider. 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSAMLProviderMixinProps>- Returns:
- a new instance of
CfnSAMLProviderMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-