CfnInstanceProfileProps Struct
Properties for defining a CfnInstanceProfile.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
const cfnInstanceProfileProps: iam.CfnInstanceProfileProps = {
roles: ['roles'],
// the properties below are optional
instanceProfileName: 'instanceProfileName',
path: 'path',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam
cfn_instance_profile_props = iam.CfnInstanceProfileProps(
roles=["roles"],
# the properties below are optional
instance_profile_name="instanceProfileName",
path="path"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;
CfnInstanceProfileProps cfnInstanceProfileProps = CfnInstanceProfileProps.builder()
.roles(List.of("roles"))
// the properties below are optional
.instanceProfileName("instanceProfileName")
.path("path")
.build();
// 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.IAM;
var cfnInstanceProfileProps = new CfnInstanceProfileProps {
Roles = new [] { "roles" },
// the properties below are optional
InstanceProfileName = "instanceProfileName",
Path = "path"
};
// 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"
cfnInstanceProfileProps := &CfnInstanceProfileProps{
Roles: []interface{}{
jsii.String("roles"),
},
// the properties below are optional
InstanceProfileName: jsii.String("instanceProfileName"),
Path: jsii.String("path"),
}
Properties
instanceProfileNameoptionalstringinstance_profile_nameoptionalstrinstanceProfileNameoptionalStringInstanceProfileNameoptionalstringInstanceProfileNameoptional*string #notes
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: _+=,.@-
notes
For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This parameter allows (through its regex pattern ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( \u0021 ) through the DEL character ( \u007F ), including most punctuation characters, digits, and upper and lowercased letters.
rolesstring | IRoleRef[]rolestyping.List[typing.Union[str, IRoleRef]]rolesList<String>Rolesstring[]Roles*[]interface{} required #Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.