Skip to content
v2.278.0

IEMapProperty Struct ​

Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to include in or exclude from the policy.

Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.

This is used for the policy's IncludeMap and ExcludeMap .

You can specify account IDs, OUs, or a combination:

  • Specify account IDs by setting the key to ACCOUNT . For example, the following is a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”]} .
  • Specify OUs by setting the key to ORGUNIT . For example, the following is a valid map: {“ORGUNIT” : [“ouid111”, “ouid112”]} .
  • Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORGUNIT” : [“ouid111”, “ouid112”]} .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fms as fms } from 'aws-cdk-lib';
const iEMapProperty: fms.CfnPolicy.IEMapProperty = {
  account: ['account'],
  orgunit: ['orgunit'],
};
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_fms as fms

i_e_map_property = {
    "account": ["account"],
    "orgunit": ["orgunit"]
}
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.fms.*;

IEMapProperty iEMapProperty = Map.of(
        "account", List.of("account"),
        "orgunit", List.of("orgunit"));
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.FMS;

var iEMapProperty = new Dictionary<string, string[]?> {
    { "account", new [] { "account" } },
    { "orgunit", new [] { "orgunit" } }
};
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"

iEMapProperty := map[string][]*string{
	"account": []*string{
		jsii.String("account"),
	},
	"orgunit": []*string{
		jsii.String("orgunit"),
	},
}

Properties ​

accountoptionalstring[]accountoptionaltyping.List[str]accountoptionalList<String>Accountoptionalstring[]Accountoptional*[]*string #
The account list for the map.
orgunitoptionalstring[]orgunitoptionaltyping.List[str]orgunitoptionalList<String>Orgunitoptionalstring[]Orgunitoptional*[]*string #
The organizational unit list for the map.