CfnProfilePropsMixin

class aws_cdk.mixins_preview.aws_rolesanywhere.mixins.CfnProfilePropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a Profile.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html

CloudformationResource:

AWS::RolesAnywhere::Profile

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_rolesanywhere import mixins as rolesanywhere_mixins

cfn_profile_props_mixin = rolesanywhere_mixins.CfnProfilePropsMixin(rolesanywhere_mixins.CfnProfileMixinProps(
    accept_role_session_name=False,
    attribute_mappings=[rolesanywhere_mixins.CfnProfilePropsMixin.AttributeMappingProperty(
        certificate_field="certificateField",
        mapping_rules=[rolesanywhere_mixins.CfnProfilePropsMixin.MappingRuleProperty(
            specifier="specifier"
        )]
    )],
    duration_seconds=123,
    enabled=False,
    managed_policy_arns=["managedPolicyArns"],
    name="name",
    require_instance_properties=False,
    role_arns=["roleArns"],
    session_policy="sessionPolicy",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::RolesAnywhere::Profile.

Parameters:
  • props (Union[CfnProfileMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['acceptRoleSessionName', 'attributeMappings', 'durationSeconds', 'enabled', 'managedPolicyArns', 'name', 'requireInstanceProperties', 'roleArns', 'sessionPolicy', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

AttributeMappingProperty

class CfnProfilePropsMixin.AttributeMappingProperty(*, certificate_field=None, mapping_rules=None)

Bases: object

A mapping applied to the authenticating end-entity certificate.

Parameters:
  • certificate_field (Optional[str]) – Fields (x509Subject, x509Issuer and x509SAN) within X.509 certificates.

  • mapping_rules (Union[IResolvable, Sequence[Union[IResolvable, MappingRuleProperty, Dict[str, Any]]], None]) – A list of mapping entries for every supported specifier or sub-field.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_rolesanywhere import mixins as rolesanywhere_mixins

attribute_mapping_property = rolesanywhere_mixins.CfnProfilePropsMixin.AttributeMappingProperty(
    certificate_field="certificateField",
    mapping_rules=[rolesanywhere_mixins.CfnProfilePropsMixin.MappingRuleProperty(
        specifier="specifier"
    )]
)

Attributes

certificate_field

Fields (x509Subject, x509Issuer and x509SAN) within X.509 certificates.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-certificatefield

mapping_rules

A list of mapping entries for every supported specifier or sub-field.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-mappingrules

MappingRuleProperty

class CfnProfilePropsMixin.MappingRuleProperty(*, specifier=None)

Bases: object

A single mapping entry for each supported specifier or sub-field.

Parameters:

specifier (Optional[str]) – Specifier within a certificate field, such as CN, OU, or UID from the Subject field.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_rolesanywhere import mixins as rolesanywhere_mixins

mapping_rule_property = rolesanywhere_mixins.CfnProfilePropsMixin.MappingRuleProperty(
    specifier="specifier"
)

Attributes

specifier

Specifier within a certificate field, such as CN, OU, or UID from the Subject field.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html#cfn-rolesanywhere-profile-mappingrule-specifier