Show / Hide Table of Contents

Class CfnInstanceProfileProps

Properties for defining a CfnInstanceProfile.

Inheritance
System.Object
CfnInstanceProfileProps
Implements
ICfnInstanceProfileProps
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.AWS.IAM.dll
Syntax (csharp)
public class CfnInstanceProfileProps : Object, ICfnInstanceProfileProps
Syntax (vb)
Public Class CfnInstanceProfileProps
    Inherits Object
    Implements ICfnInstanceProfileProps
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html

ExampleMetadata: fixture=_generated

Examples
// 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"
};

Synopsis

Constructors

CfnInstanceProfileProps()

Properties

InstanceProfileName

The name of the instance profile to create.

Path

The path to the instance profile.

Roles

The name of the role to associate with the instance profile.

Constructors

CfnInstanceProfileProps()

public CfnInstanceProfileProps()

Properties

InstanceProfileName

The name of the instance profile to create.

public string InstanceProfileName { get; set; }
Property Value

System.String

Remarks

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: _+=,.@-

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-instanceprofilename

Path

The path to the instance profile.

public string Path { get; set; }
Property Value

System.String

Remarks

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-path

Roles

The name of the role to associate with the instance profile.

public string[] Roles { get; set; }
Property Value

System.String[]

Remarks

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-roles

Implements

ICfnInstanceProfileProps
Back to top Generated by DocFX