Class: AWSCDK::OpsWorks::CfnUserProfileProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpsWorks::CfnUserProfileProps
- Defined in:
- ops_works/cfn_user_profile_props.rb
Overview
Properties for defining a CfnUserProfile.
Instance Attribute Summary collapse
-
#allow_self_management ⇒ Boolean, ...
readonly
Whether users can specify their own SSH public key through the My Settings page.
-
#iam_user_arn ⇒ String
readonly
The user's IAM ARN.
-
#ssh_public_key ⇒ String?
readonly
The user's SSH public key.
-
#ssh_username ⇒ String?
readonly
The user's SSH user name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(iam_user_arn:, allow_self_management: nil, ssh_public_key: nil, ssh_username: nil) ⇒ CfnUserProfileProps
constructor
A new instance of CfnUserProfileProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(iam_user_arn:, allow_self_management: nil, ssh_public_key: nil, ssh_username: nil) ⇒ CfnUserProfileProps
Returns a new instance of CfnUserProfileProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ops_works/cfn_user_profile_props.rb', line 13 def initialize(iam_user_arn:, allow_self_management: nil, ssh_public_key: nil, ssh_username: nil) @iam_user_arn = iam_user_arn Jsii::Type.check_type(@iam_user_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "iamUserArn") @allow_self_management = allow_self_management Jsii::Type.check_type(@allow_self_management, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowSelfManagement") unless @allow_self_management.nil? @ssh_public_key = ssh_public_key Jsii::Type.check_type(@ssh_public_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sshPublicKey") unless @ssh_public_key.nil? @ssh_username = ssh_username Jsii::Type.check_type(@ssh_username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sshUsername") unless @ssh_username.nil? end |
Instance Attribute Details
#allow_self_management ⇒ Boolean, ... (readonly)
Whether users can specify their own SSH public key through the My Settings page.
For more information, see Managing User Permissions .
35 36 37 |
# File 'ops_works/cfn_user_profile_props.rb', line 35 def allow_self_management @allow_self_management end |
#iam_user_arn ⇒ String (readonly)
The user's IAM ARN.
28 29 30 |
# File 'ops_works/cfn_user_profile_props.rb', line 28 def iam_user_arn @iam_user_arn end |
#ssh_public_key ⇒ String? (readonly)
The user's SSH public key.
40 41 42 |
# File 'ops_works/cfn_user_profile_props.rb', line 40 def ssh_public_key @ssh_public_key end |
#ssh_username ⇒ String? (readonly)
The user's SSH user name.
45 46 47 |
# File 'ops_works/cfn_user_profile_props.rb', line 45 def ssh_username @ssh_username end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'ops_works/cfn_user_profile_props.rb', line 47 def self.jsii_properties { :iam_user_arn => "iamUserArn", :allow_self_management => "allowSelfManagement", :ssh_public_key => "sshPublicKey", :ssh_username => "sshUsername", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'ops_works/cfn_user_profile_props.rb', line 56 def to_jsii result = {} result.merge!({ "iamUserArn" => @iam_user_arn, "allowSelfManagement" => @allow_self_management, "sshPublicKey" => @ssh_public_key, "sshUsername" => @ssh_username, }) result.compact end |