UserPolicy constructor
UserPolicy(
- String name, {
- UserPolicyArgs? args,
- CustomResourceOptions? options,
Creates a new UserPolicy.
name The Pulumi resource name.
args Arguments used to configure this UserPolicy. The set of arguments for UserPolicy.
options Resource options controlling this resource's behavior.
Implementation
UserPolicy(
String name, {
UserPolicyArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:iam/userPolicy:UserPolicy',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
this.name = registerOutput<String>('name');
namePrefix = registerOutput<String>('namePrefix');
policy = registerOutput<String>('policy');
user = registerOutput<String>('user');
}