Skip to content
v2.278.0

AttributeMappingProperty Struct ​

A mapping applied to the authenticating end-entity certificate.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rolesanywhere as rolesanywhere } from 'aws-cdk-lib';
const attributeMappingProperty: rolesanywhere.CfnProfile.AttributeMappingProperty = {
  certificateField: 'certificateField',
  mappingRules: [{
    specifier: 'specifier',
  }],
};
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_rolesanywhere as rolesanywhere

attribute_mapping_property = rolesanywhere.CfnProfile.AttributeMappingProperty(
    certificate_field="certificateField",
    mapping_rules=[rolesanywhere.CfnProfile.MappingRuleProperty(
        specifier="specifier"
    )]
)
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.rolesanywhere.*;

AttributeMappingProperty attributeMappingProperty = AttributeMappingProperty.builder()
        .certificateField("certificateField")
        .mappingRules(List.of(MappingRuleProperty.builder()
                .specifier("specifier")
                .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.RolesAnywhere;

var attributeMappingProperty = new AttributeMappingProperty {
    CertificateField = "certificateField",
    MappingRules = new [] { new MappingRuleProperty {
        Specifier = "specifier"
    } }
};
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"

attributeMappingProperty := &AttributeMappingProperty{
	CertificateField: jsii.String("certificateField"),
	MappingRules: []interface{}{
		&MappingRuleProperty{
			Specifier: jsii.String("specifier"),
		},
	},
}

Properties ​

certificateFieldstringcertificate_fieldstrcertificateFieldStringCertificateFieldstringCertificateField*string required #
Fields (x509Subject, x509Issuer and x509SAN) within X.509 certificates.
mappingRulesIResolvable | IResolvable | CfnProfile.MappingRuleProperty[]mapping_rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MappingRuleProperty]]]mappingRulesIResolvableMappingRulesIResolvableMappingRulesinterface{} required #
A list of mapping entries for every supported specifier or sub-field.