# AttributeMappingProperty

A mapping applied to the authenticating end-entity certificate.

- Source: Generated at build time
- Type last changed: v2.146.0 · 13 Jun 2024

## Example

TypeScript:

```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:

```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:

```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();
```

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.RolesAnywhere;

var attributeMappingProperty = new AttributeMappingProperty {
    CertificateField = "certificateField",
    MappingRules = new [] { new MappingRuleProperty {
        Specifier = "specifier"
    } }
};
```

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"

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

## Properties

- `certificateField`: string (required) — Fields (x509Subject, x509Issuer and x509SAN) within X.509 certificates.

- `mappingRules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProfile.MappingRuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rolesanywhere.CfnProfile.MappingRuleProperty.html)[] (required) — A list of mapping entries for every supported specifier or sub-field.
