How to use user_arn method in localstack

Best Python code snippet using localstack_python

permission.py

Source:permission.py Github

copy

Full Screen

...34 if stack_id is not None:35 pulumi.set(__self__, "stack_id", stack_id)36 @property37 @pulumi.getter(name="userArn")38 def user_arn(self) -> pulumi.Input[str]:39 """40 The user's IAM ARN to set permissions for41 """42 return pulumi.get(self, "user_arn")43 @user_arn.setter44 def user_arn(self, value: pulumi.Input[str]):45 pulumi.set(self, "user_arn", value)46 @property47 @pulumi.getter(name="allowSsh")48 def allow_ssh(self) -> Optional[pulumi.Input[bool]]:49 """50 Whether the user is allowed to use SSH to communicate with the instance51 """52 return pulumi.get(self, "allow_ssh")53 @allow_ssh.setter54 def allow_ssh(self, value: Optional[pulumi.Input[bool]]):55 pulumi.set(self, "allow_ssh", value)56 @property57 @pulumi.getter(name="allowSudo")58 def allow_sudo(self) -> Optional[pulumi.Input[bool]]:59 """60 Whether the user is allowed to use sudo to elevate privileges61 """62 return pulumi.get(self, "allow_sudo")63 @allow_sudo.setter64 def allow_sudo(self, value: Optional[pulumi.Input[bool]]):65 pulumi.set(self, "allow_sudo", value)66 @property67 @pulumi.getter68 def level(self) -> Optional[pulumi.Input[str]]:69 """70 The users permission level. Mus be one of `deny`, `show`, `deploy`, `manage`, `iam_only`71 """72 return pulumi.get(self, "level")73 @level.setter74 def level(self, value: Optional[pulumi.Input[str]]):75 pulumi.set(self, "level", value)76 @property77 @pulumi.getter(name="stackId")78 def stack_id(self) -> Optional[pulumi.Input[str]]:79 """80 The stack to set the permissions for81 """82 return pulumi.get(self, "stack_id")83 @stack_id.setter84 def stack_id(self, value: Optional[pulumi.Input[str]]):85 pulumi.set(self, "stack_id", value)86@pulumi.input_type87class _PermissionState:88 def __init__(__self__, *,89 allow_ssh: Optional[pulumi.Input[bool]] = None,90 allow_sudo: Optional[pulumi.Input[bool]] = None,91 level: Optional[pulumi.Input[str]] = None,92 stack_id: Optional[pulumi.Input[str]] = None,93 user_arn: Optional[pulumi.Input[str]] = None):94 """95 Input properties used for looking up and filtering Permission resources.96 :param pulumi.Input[bool] allow_ssh: Whether the user is allowed to use SSH to communicate with the instance97 :param pulumi.Input[bool] allow_sudo: Whether the user is allowed to use sudo to elevate privileges98 :param pulumi.Input[str] level: The users permission level. Mus be one of `deny`, `show`, `deploy`, `manage`, `iam_only`99 :param pulumi.Input[str] stack_id: The stack to set the permissions for100 :param pulumi.Input[str] user_arn: The user's IAM ARN to set permissions for101 """102 if allow_ssh is not None:103 pulumi.set(__self__, "allow_ssh", allow_ssh)104 if allow_sudo is not None:105 pulumi.set(__self__, "allow_sudo", allow_sudo)106 if level is not None:107 pulumi.set(__self__, "level", level)108 if stack_id is not None:109 pulumi.set(__self__, "stack_id", stack_id)110 if user_arn is not None:111 pulumi.set(__self__, "user_arn", user_arn)112 @property113 @pulumi.getter(name="allowSsh")114 def allow_ssh(self) -> Optional[pulumi.Input[bool]]:115 """116 Whether the user is allowed to use SSH to communicate with the instance117 """118 return pulumi.get(self, "allow_ssh")119 @allow_ssh.setter120 def allow_ssh(self, value: Optional[pulumi.Input[bool]]):121 pulumi.set(self, "allow_ssh", value)122 @property123 @pulumi.getter(name="allowSudo")124 def allow_sudo(self) -> Optional[pulumi.Input[bool]]:125 """126 Whether the user is allowed to use sudo to elevate privileges127 """128 return pulumi.get(self, "allow_sudo")129 @allow_sudo.setter130 def allow_sudo(self, value: Optional[pulumi.Input[bool]]):131 pulumi.set(self, "allow_sudo", value)132 @property133 @pulumi.getter134 def level(self) -> Optional[pulumi.Input[str]]:135 """136 The users permission level. Mus be one of `deny`, `show`, `deploy`, `manage`, `iam_only`137 """138 return pulumi.get(self, "level")139 @level.setter140 def level(self, value: Optional[pulumi.Input[str]]):141 pulumi.set(self, "level", value)142 @property143 @pulumi.getter(name="stackId")144 def stack_id(self) -> Optional[pulumi.Input[str]]:145 """146 The stack to set the permissions for147 """148 return pulumi.get(self, "stack_id")149 @stack_id.setter150 def stack_id(self, value: Optional[pulumi.Input[str]]):151 pulumi.set(self, "stack_id", value)152 @property153 @pulumi.getter(name="userArn")154 def user_arn(self) -> Optional[pulumi.Input[str]]:155 """156 The user's IAM ARN to set permissions for157 """158 return pulumi.get(self, "user_arn")159 @user_arn.setter160 def user_arn(self, value: Optional[pulumi.Input[str]]):161 pulumi.set(self, "user_arn", value)162class Permission(pulumi.CustomResource):163 @overload164 def __init__(__self__,165 resource_name: str,166 opts: Optional[pulumi.ResourceOptions] = None,167 allow_ssh: Optional[pulumi.Input[bool]] = None,168 allow_sudo: Optional[pulumi.Input[bool]] = None,169 level: Optional[pulumi.Input[str]] = None,170 stack_id: Optional[pulumi.Input[str]] = None,171 user_arn: Optional[pulumi.Input[str]] = None,172 __props__=None):173 """174 Provides an OpsWorks permission resource.175 ## Example Usage176 ```python177 import pulumi178 import pulumi_aws as aws179 my_stack_permission = aws.opsworks.Permission("myStackPermission",180 allow_ssh=True,181 allow_sudo=True,182 level="iam_only",183 user_arn=aws_iam_user["user"]["arn"],184 stack_id=aws_opsworks_stack["stack"]["id"])185 ```186 :param str resource_name: The name of the resource.187 :param pulumi.ResourceOptions opts: Options for the resource.188 :param pulumi.Input[bool] allow_ssh: Whether the user is allowed to use SSH to communicate with the instance189 :param pulumi.Input[bool] allow_sudo: Whether the user is allowed to use sudo to elevate privileges190 :param pulumi.Input[str] level: The users permission level. Mus be one of `deny`, `show`, `deploy`, `manage`, `iam_only`191 :param pulumi.Input[str] stack_id: The stack to set the permissions for192 :param pulumi.Input[str] user_arn: The user's IAM ARN to set permissions for193 """194 ...195 @overload196 def __init__(__self__,197 resource_name: str,198 args: PermissionArgs,199 opts: Optional[pulumi.ResourceOptions] = None):200 """201 Provides an OpsWorks permission resource.202 ## Example Usage203 ```python204 import pulumi205 import pulumi_aws as aws206 my_stack_permission = aws.opsworks.Permission("myStackPermission",207 allow_ssh=True,208 allow_sudo=True,209 level="iam_only",210 user_arn=aws_iam_user["user"]["arn"],211 stack_id=aws_opsworks_stack["stack"]["id"])212 ```213 :param str resource_name: The name of the resource.214 :param PermissionArgs args: The arguments to use to populate this resource's properties.215 :param pulumi.ResourceOptions opts: Options for the resource.216 """217 ...218 def __init__(__self__, resource_name: str, *args, **kwargs):219 resource_args, opts = _utilities.get_resource_args_opts(PermissionArgs, pulumi.ResourceOptions, *args, **kwargs)220 if resource_args is not None:221 __self__._internal_init(resource_name, opts, **resource_args.__dict__)222 else:223 __self__._internal_init(resource_name, *args, **kwargs)224 def _internal_init(__self__,225 resource_name: str,226 opts: Optional[pulumi.ResourceOptions] = None,227 allow_ssh: Optional[pulumi.Input[bool]] = None,228 allow_sudo: Optional[pulumi.Input[bool]] = None,229 level: Optional[pulumi.Input[str]] = None,230 stack_id: Optional[pulumi.Input[str]] = None,231 user_arn: Optional[pulumi.Input[str]] = None,232 __props__=None):233 opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)234 if not isinstance(opts, pulumi.ResourceOptions):235 raise TypeError('Expected resource options to be a ResourceOptions instance')236 if opts.id is None:237 if __props__ is not None:238 raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')239 __props__ = PermissionArgs.__new__(PermissionArgs)240 __props__.__dict__["allow_ssh"] = allow_ssh241 __props__.__dict__["allow_sudo"] = allow_sudo242 __props__.__dict__["level"] = level243 __props__.__dict__["stack_id"] = stack_id244 if user_arn is None and not opts.urn:245 raise TypeError("Missing required property 'user_arn'")246 __props__.__dict__["user_arn"] = user_arn247 super(Permission, __self__).__init__(248 'aws:opsworks/permission:Permission',249 resource_name,250 __props__,251 opts)252 @staticmethod253 def get(resource_name: str,254 id: pulumi.Input[str],255 opts: Optional[pulumi.ResourceOptions] = None,256 allow_ssh: Optional[pulumi.Input[bool]] = None,257 allow_sudo: Optional[pulumi.Input[bool]] = None,258 level: Optional[pulumi.Input[str]] = None,259 stack_id: Optional[pulumi.Input[str]] = None,260 user_arn: Optional[pulumi.Input[str]] = None) -> 'Permission':261 """262 Get an existing Permission resource's state with the given name, id, and optional extra263 properties used to qualify the lookup.264 :param str resource_name: The unique name of the resulting resource.265 :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.266 :param pulumi.ResourceOptions opts: Options for the resource.267 :param pulumi.Input[bool] allow_ssh: Whether the user is allowed to use SSH to communicate with the instance268 :param pulumi.Input[bool] allow_sudo: Whether the user is allowed to use sudo to elevate privileges269 :param pulumi.Input[str] level: The users permission level. Mus be one of `deny`, `show`, `deploy`, `manage`, `iam_only`270 :param pulumi.Input[str] stack_id: The stack to set the permissions for271 :param pulumi.Input[str] user_arn: The user's IAM ARN to set permissions for272 """273 opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))274 __props__ = _PermissionState.__new__(_PermissionState)275 __props__.__dict__["allow_ssh"] = allow_ssh276 __props__.__dict__["allow_sudo"] = allow_sudo277 __props__.__dict__["level"] = level278 __props__.__dict__["stack_id"] = stack_id279 __props__.__dict__["user_arn"] = user_arn280 return Permission(resource_name, opts=opts, __props__=__props__)281 @property282 @pulumi.getter(name="allowSsh")283 def allow_ssh(self) -> pulumi.Output[bool]:284 """285 Whether the user is allowed to use SSH to communicate with the instance286 """287 return pulumi.get(self, "allow_ssh")288 @property289 @pulumi.getter(name="allowSudo")290 def allow_sudo(self) -> pulumi.Output[bool]:291 """292 Whether the user is allowed to use sudo to elevate privileges293 """294 return pulumi.get(self, "allow_sudo")295 @property296 @pulumi.getter297 def level(self) -> pulumi.Output[str]:298 """299 The users permission level. Mus be one of `deny`, `show`, `deploy`, `manage`, `iam_only`300 """301 return pulumi.get(self, "level")302 @property303 @pulumi.getter(name="stackId")304 def stack_id(self) -> pulumi.Output[str]:305 """306 The stack to set the permissions for307 """308 return pulumi.get(self, "stack_id")309 @property310 @pulumi.getter(name="userArn")311 def user_arn(self) -> pulumi.Output[str]:312 """313 The user's IAM ARN to set permissions for314 """...

Full Screen

Full Screen

environment_membership.py

Source:environment_membership.py Github

copy

Full Screen

...44 def permissions(self, value: pulumi.Input[str]):45 pulumi.set(self, "permissions", value)46 @property47 @pulumi.getter(name="userArn")48 def user_arn(self) -> pulumi.Input[str]:49 """50 The Amazon Resource Name (ARN) of the environment member you want to add.51 """52 return pulumi.get(self, "user_arn")53 @user_arn.setter54 def user_arn(self, value: pulumi.Input[str]):55 pulumi.set(self, "user_arn", value)56@pulumi.input_type57class _EnvironmentMembershipState:58 def __init__(__self__, *,59 environment_id: Optional[pulumi.Input[str]] = None,60 permissions: Optional[pulumi.Input[str]] = None,61 user_arn: Optional[pulumi.Input[str]] = None,62 user_id: Optional[pulumi.Input[str]] = None):63 """64 Input properties used for looking up and filtering EnvironmentMembership resources.65 :param pulumi.Input[str] environment_id: The ID of the environment that contains the environment member you want to add.66 :param pulumi.Input[str] permissions: The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .67 :param pulumi.Input[str] user_arn: The Amazon Resource Name (ARN) of the environment member you want to add.68 :param pulumi.Input[str] user_id: he user ID in AWS Identity and Access Management (AWS IAM) of the environment member.69 """70 if environment_id is not None:71 pulumi.set(__self__, "environment_id", environment_id)72 if permissions is not None:73 pulumi.set(__self__, "permissions", permissions)74 if user_arn is not None:75 pulumi.set(__self__, "user_arn", user_arn)76 if user_id is not None:77 pulumi.set(__self__, "user_id", user_id)78 @property79 @pulumi.getter(name="environmentId")80 def environment_id(self) -> Optional[pulumi.Input[str]]:81 """82 The ID of the environment that contains the environment member you want to add.83 """84 return pulumi.get(self, "environment_id")85 @environment_id.setter86 def environment_id(self, value: Optional[pulumi.Input[str]]):87 pulumi.set(self, "environment_id", value)88 @property89 @pulumi.getter90 def permissions(self) -> Optional[pulumi.Input[str]]:91 """92 The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .93 """94 return pulumi.get(self, "permissions")95 @permissions.setter96 def permissions(self, value: Optional[pulumi.Input[str]]):97 pulumi.set(self, "permissions", value)98 @property99 @pulumi.getter(name="userArn")100 def user_arn(self) -> Optional[pulumi.Input[str]]:101 """102 The Amazon Resource Name (ARN) of the environment member you want to add.103 """104 return pulumi.get(self, "user_arn")105 @user_arn.setter106 def user_arn(self, value: Optional[pulumi.Input[str]]):107 pulumi.set(self, "user_arn", value)108 @property109 @pulumi.getter(name="userId")110 def user_id(self) -> Optional[pulumi.Input[str]]:111 """112 he user ID in AWS Identity and Access Management (AWS IAM) of the environment member.113 """114 return pulumi.get(self, "user_id")115 @user_id.setter116 def user_id(self, value: Optional[pulumi.Input[str]]):117 pulumi.set(self, "user_id", value)118class EnvironmentMembership(pulumi.CustomResource):119 @overload120 def __init__(__self__,121 resource_name: str,122 opts: Optional[pulumi.ResourceOptions] = None,123 environment_id: Optional[pulumi.Input[str]] = None,124 permissions: Optional[pulumi.Input[str]] = None,125 user_arn: Optional[pulumi.Input[str]] = None,126 __props__=None):127 """128 Provides an environment member to an AWS Cloud9 development environment.129 ## Example Usage130 ```python131 import pulumi132 import pulumi_aws as aws133 test_environment_ec2 = aws.cloud9.EnvironmentEC2("testEnvironmentEC2", instance_type="t2.micro")134 test_user = aws.iam.User("testUser")135 test_environment_membership = aws.cloud9.EnvironmentMembership("testEnvironmentMembership",136 environment_id=test_environment_ec2.id,137 permissions="read-only",138 user_arn=test_user.arn)139 ```140 ## Import141 Cloud9 environment membership can be imported using the `environment-id#user-arn`, e.g.142 ```sh143 $ pulumi import aws:cloud9/environmentMembership:EnvironmentMembership test environment-id#user-arn144 ```145 :param str resource_name: The name of the resource.146 :param pulumi.ResourceOptions opts: Options for the resource.147 :param pulumi.Input[str] environment_id: The ID of the environment that contains the environment member you want to add.148 :param pulumi.Input[str] permissions: The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .149 :param pulumi.Input[str] user_arn: The Amazon Resource Name (ARN) of the environment member you want to add.150 """151 ...152 @overload153 def __init__(__self__,154 resource_name: str,155 args: EnvironmentMembershipArgs,156 opts: Optional[pulumi.ResourceOptions] = None):157 """158 Provides an environment member to an AWS Cloud9 development environment.159 ## Example Usage160 ```python161 import pulumi162 import pulumi_aws as aws163 test_environment_ec2 = aws.cloud9.EnvironmentEC2("testEnvironmentEC2", instance_type="t2.micro")164 test_user = aws.iam.User("testUser")165 test_environment_membership = aws.cloud9.EnvironmentMembership("testEnvironmentMembership",166 environment_id=test_environment_ec2.id,167 permissions="read-only",168 user_arn=test_user.arn)169 ```170 ## Import171 Cloud9 environment membership can be imported using the `environment-id#user-arn`, e.g.172 ```sh173 $ pulumi import aws:cloud9/environmentMembership:EnvironmentMembership test environment-id#user-arn174 ```175 :param str resource_name: The name of the resource.176 :param EnvironmentMembershipArgs args: The arguments to use to populate this resource's properties.177 :param pulumi.ResourceOptions opts: Options for the resource.178 """179 ...180 def __init__(__self__, resource_name: str, *args, **kwargs):181 resource_args, opts = _utilities.get_resource_args_opts(EnvironmentMembershipArgs, pulumi.ResourceOptions, *args, **kwargs)182 if resource_args is not None:183 __self__._internal_init(resource_name, opts, **resource_args.__dict__)184 else:185 __self__._internal_init(resource_name, *args, **kwargs)186 def _internal_init(__self__,187 resource_name: str,188 opts: Optional[pulumi.ResourceOptions] = None,189 environment_id: Optional[pulumi.Input[str]] = None,190 permissions: Optional[pulumi.Input[str]] = None,191 user_arn: Optional[pulumi.Input[str]] = None,192 __props__=None):193 opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)194 if not isinstance(opts, pulumi.ResourceOptions):195 raise TypeError('Expected resource options to be a ResourceOptions instance')196 if opts.id is None:197 if __props__ is not None:198 raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')199 __props__ = EnvironmentMembershipArgs.__new__(EnvironmentMembershipArgs)200 if environment_id is None and not opts.urn:201 raise TypeError("Missing required property 'environment_id'")202 __props__.__dict__["environment_id"] = environment_id203 if permissions is None and not opts.urn:204 raise TypeError("Missing required property 'permissions'")205 __props__.__dict__["permissions"] = permissions206 if user_arn is None and not opts.urn:207 raise TypeError("Missing required property 'user_arn'")208 __props__.__dict__["user_arn"] = user_arn209 __props__.__dict__["user_id"] = None210 super(EnvironmentMembership, __self__).__init__(211 'aws:cloud9/environmentMembership:EnvironmentMembership',212 resource_name,213 __props__,214 opts)215 @staticmethod216 def get(resource_name: str,217 id: pulumi.Input[str],218 opts: Optional[pulumi.ResourceOptions] = None,219 environment_id: Optional[pulumi.Input[str]] = None,220 permissions: Optional[pulumi.Input[str]] = None,221 user_arn: Optional[pulumi.Input[str]] = None,222 user_id: Optional[pulumi.Input[str]] = None) -> 'EnvironmentMembership':223 """224 Get an existing EnvironmentMembership resource's state with the given name, id, and optional extra225 properties used to qualify the lookup.226 :param str resource_name: The unique name of the resulting resource.227 :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.228 :param pulumi.ResourceOptions opts: Options for the resource.229 :param pulumi.Input[str] environment_id: The ID of the environment that contains the environment member you want to add.230 :param pulumi.Input[str] permissions: The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .231 :param pulumi.Input[str] user_arn: The Amazon Resource Name (ARN) of the environment member you want to add.232 :param pulumi.Input[str] user_id: he user ID in AWS Identity and Access Management (AWS IAM) of the environment member.233 """234 opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))235 __props__ = _EnvironmentMembershipState.__new__(_EnvironmentMembershipState)236 __props__.__dict__["environment_id"] = environment_id237 __props__.__dict__["permissions"] = permissions238 __props__.__dict__["user_arn"] = user_arn239 __props__.__dict__["user_id"] = user_id240 return EnvironmentMembership(resource_name, opts=opts, __props__=__props__)241 @property242 @pulumi.getter(name="environmentId")243 def environment_id(self) -> pulumi.Output[str]:244 """245 The ID of the environment that contains the environment member you want to add.246 """247 return pulumi.get(self, "environment_id")248 @property249 @pulumi.getter250 def permissions(self) -> pulumi.Output[str]:251 """252 The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .253 """254 return pulumi.get(self, "permissions")255 @property256 @pulumi.getter(name="userArn")257 def user_arn(self) -> pulumi.Output[str]:258 """259 The Amazon Resource Name (ARN) of the environment member you want to add.260 """261 return pulumi.get(self, "user_arn")262 @property263 @pulumi.getter(name="userId")264 def user_id(self) -> pulumi.Output[str]:265 """266 he user ID in AWS Identity and Access Management (AWS IAM) of the environment member.267 """...

Full Screen

Full Screen

user_profile.py

Source:user_profile.py Github

copy

Full Screen

...39 def ssh_username(self, value: pulumi.Input[str]):40 pulumi.set(self, "ssh_username", value)41 @property42 @pulumi.getter(name="userArn")43 def user_arn(self) -> pulumi.Input[str]:44 """45 The user's IAM ARN46 """47 return pulumi.get(self, "user_arn")48 @user_arn.setter49 def user_arn(self, value: pulumi.Input[str]):50 pulumi.set(self, "user_arn", value)51 @property52 @pulumi.getter(name="allowSelfManagement")53 def allow_self_management(self) -> Optional[pulumi.Input[bool]]:54 """55 Whether users can specify their own SSH public key through the My Settings page56 """57 return pulumi.get(self, "allow_self_management")58 @allow_self_management.setter59 def allow_self_management(self, value: Optional[pulumi.Input[bool]]):60 pulumi.set(self, "allow_self_management", value)61 @property62 @pulumi.getter(name="sshPublicKey")63 def ssh_public_key(self) -> Optional[pulumi.Input[str]]:64 """65 The users public key66 """67 return pulumi.get(self, "ssh_public_key")68 @ssh_public_key.setter69 def ssh_public_key(self, value: Optional[pulumi.Input[str]]):70 pulumi.set(self, "ssh_public_key", value)71@pulumi.input_type72class _UserProfileState:73 def __init__(__self__, *,74 allow_self_management: Optional[pulumi.Input[bool]] = None,75 ssh_public_key: Optional[pulumi.Input[str]] = None,76 ssh_username: Optional[pulumi.Input[str]] = None,77 user_arn: Optional[pulumi.Input[str]] = None):78 """79 Input properties used for looking up and filtering UserProfile resources.80 :param pulumi.Input[bool] allow_self_management: Whether users can specify their own SSH public key through the My Settings page81 :param pulumi.Input[str] ssh_public_key: The users public key82 :param pulumi.Input[str] ssh_username: The ssh username, with witch this user wants to log in83 :param pulumi.Input[str] user_arn: The user's IAM ARN84 """85 if allow_self_management is not None:86 pulumi.set(__self__, "allow_self_management", allow_self_management)87 if ssh_public_key is not None:88 pulumi.set(__self__, "ssh_public_key", ssh_public_key)89 if ssh_username is not None:90 pulumi.set(__self__, "ssh_username", ssh_username)91 if user_arn is not None:92 pulumi.set(__self__, "user_arn", user_arn)93 @property94 @pulumi.getter(name="allowSelfManagement")95 def allow_self_management(self) -> Optional[pulumi.Input[bool]]:96 """97 Whether users can specify their own SSH public key through the My Settings page98 """99 return pulumi.get(self, "allow_self_management")100 @allow_self_management.setter101 def allow_self_management(self, value: Optional[pulumi.Input[bool]]):102 pulumi.set(self, "allow_self_management", value)103 @property104 @pulumi.getter(name="sshPublicKey")105 def ssh_public_key(self) -> Optional[pulumi.Input[str]]:106 """107 The users public key108 """109 return pulumi.get(self, "ssh_public_key")110 @ssh_public_key.setter111 def ssh_public_key(self, value: Optional[pulumi.Input[str]]):112 pulumi.set(self, "ssh_public_key", value)113 @property114 @pulumi.getter(name="sshUsername")115 def ssh_username(self) -> Optional[pulumi.Input[str]]:116 """117 The ssh username, with witch this user wants to log in118 """119 return pulumi.get(self, "ssh_username")120 @ssh_username.setter121 def ssh_username(self, value: Optional[pulumi.Input[str]]):122 pulumi.set(self, "ssh_username", value)123 @property124 @pulumi.getter(name="userArn")125 def user_arn(self) -> Optional[pulumi.Input[str]]:126 """127 The user's IAM ARN128 """129 return pulumi.get(self, "user_arn")130 @user_arn.setter131 def user_arn(self, value: Optional[pulumi.Input[str]]):132 pulumi.set(self, "user_arn", value)133class UserProfile(pulumi.CustomResource):134 @overload135 def __init__(__self__,136 resource_name: str,137 opts: Optional[pulumi.ResourceOptions] = None,138 allow_self_management: Optional[pulumi.Input[bool]] = None,139 ssh_public_key: Optional[pulumi.Input[str]] = None,140 ssh_username: Optional[pulumi.Input[str]] = None,141 user_arn: Optional[pulumi.Input[str]] = None,142 __props__=None):143 """144 Provides an OpsWorks User Profile resource.145 ## Example Usage146 ```python147 import pulumi148 import pulumi_aws as aws149 my_profile = aws.opsworks.UserProfile("myProfile",150 user_arn=aws_iam_user["user"]["arn"],151 ssh_username="my_user")152 ```153 :param str resource_name: The name of the resource.154 :param pulumi.ResourceOptions opts: Options for the resource.155 :param pulumi.Input[bool] allow_self_management: Whether users can specify their own SSH public key through the My Settings page156 :param pulumi.Input[str] ssh_public_key: The users public key157 :param pulumi.Input[str] ssh_username: The ssh username, with witch this user wants to log in158 :param pulumi.Input[str] user_arn: The user's IAM ARN159 """160 ...161 @overload162 def __init__(__self__,163 resource_name: str,164 args: UserProfileArgs,165 opts: Optional[pulumi.ResourceOptions] = None):166 """167 Provides an OpsWorks User Profile resource.168 ## Example Usage169 ```python170 import pulumi171 import pulumi_aws as aws172 my_profile = aws.opsworks.UserProfile("myProfile",173 user_arn=aws_iam_user["user"]["arn"],174 ssh_username="my_user")175 ```176 :param str resource_name: The name of the resource.177 :param UserProfileArgs args: The arguments to use to populate this resource's properties.178 :param pulumi.ResourceOptions opts: Options for the resource.179 """180 ...181 def __init__(__self__, resource_name: str, *args, **kwargs):182 resource_args, opts = _utilities.get_resource_args_opts(UserProfileArgs, pulumi.ResourceOptions, *args, **kwargs)183 if resource_args is not None:184 __self__._internal_init(resource_name, opts, **resource_args.__dict__)185 else:186 __self__._internal_init(resource_name, *args, **kwargs)187 def _internal_init(__self__,188 resource_name: str,189 opts: Optional[pulumi.ResourceOptions] = None,190 allow_self_management: Optional[pulumi.Input[bool]] = None,191 ssh_public_key: Optional[pulumi.Input[str]] = None,192 ssh_username: Optional[pulumi.Input[str]] = None,193 user_arn: Optional[pulumi.Input[str]] = None,194 __props__=None):195 opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)196 if not isinstance(opts, pulumi.ResourceOptions):197 raise TypeError('Expected resource options to be a ResourceOptions instance')198 if opts.id is None:199 if __props__ is not None:200 raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')201 __props__ = UserProfileArgs.__new__(UserProfileArgs)202 __props__.__dict__["allow_self_management"] = allow_self_management203 __props__.__dict__["ssh_public_key"] = ssh_public_key204 if ssh_username is None and not opts.urn:205 raise TypeError("Missing required property 'ssh_username'")206 __props__.__dict__["ssh_username"] = ssh_username207 if user_arn is None and not opts.urn:208 raise TypeError("Missing required property 'user_arn'")209 __props__.__dict__["user_arn"] = user_arn210 super(UserProfile, __self__).__init__(211 'aws:opsworks/userProfile:UserProfile',212 resource_name,213 __props__,214 opts)215 @staticmethod216 def get(resource_name: str,217 id: pulumi.Input[str],218 opts: Optional[pulumi.ResourceOptions] = None,219 allow_self_management: Optional[pulumi.Input[bool]] = None,220 ssh_public_key: Optional[pulumi.Input[str]] = None,221 ssh_username: Optional[pulumi.Input[str]] = None,222 user_arn: Optional[pulumi.Input[str]] = None) -> 'UserProfile':223 """224 Get an existing UserProfile resource's state with the given name, id, and optional extra225 properties used to qualify the lookup.226 :param str resource_name: The unique name of the resulting resource.227 :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.228 :param pulumi.ResourceOptions opts: Options for the resource.229 :param pulumi.Input[bool] allow_self_management: Whether users can specify their own SSH public key through the My Settings page230 :param pulumi.Input[str] ssh_public_key: The users public key231 :param pulumi.Input[str] ssh_username: The ssh username, with witch this user wants to log in232 :param pulumi.Input[str] user_arn: The user's IAM ARN233 """234 opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))235 __props__ = _UserProfileState.__new__(_UserProfileState)236 __props__.__dict__["allow_self_management"] = allow_self_management237 __props__.__dict__["ssh_public_key"] = ssh_public_key238 __props__.__dict__["ssh_username"] = ssh_username239 __props__.__dict__["user_arn"] = user_arn240 return UserProfile(resource_name, opts=opts, __props__=__props__)241 @property242 @pulumi.getter(name="allowSelfManagement")243 def allow_self_management(self) -> pulumi.Output[Optional[bool]]:244 """245 Whether users can specify their own SSH public key through the My Settings page246 """247 return pulumi.get(self, "allow_self_management")248 @property249 @pulumi.getter(name="sshPublicKey")250 def ssh_public_key(self) -> pulumi.Output[Optional[str]]:251 """252 The users public key253 """254 return pulumi.get(self, "ssh_public_key")255 @property256 @pulumi.getter(name="sshUsername")257 def ssh_username(self) -> pulumi.Output[str]:258 """259 The ssh username, with witch this user wants to log in260 """261 return pulumi.get(self, "ssh_username")262 @property263 @pulumi.getter(name="userArn")264 def user_arn(self) -> pulumi.Output[str]:265 """266 The user's IAM ARN267 """...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful