dome9.AttachIamSafe
Explore with Pulumi AI
Attach IAM safe to AWS cloud account.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as dome9 from "@pulumi/dome9";
const test = new dome9.AttachIamSafe("test", {
awsCloudAccountId: "00000000-0000-0000-0000-000000000000",
awsGroupArn: "AWS_GROUP_ARN",
awsPolicyArn: "AWS_POLICY_ARN",
});
import pulumi
import pulumi_dome9 as dome9
test = dome9.AttachIamSafe("test",
aws_cloud_account_id="00000000-0000-0000-0000-000000000000",
aws_group_arn="AWS_GROUP_ARN",
aws_policy_arn="AWS_POLICY_ARN")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/dome9/dome9"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dome9.NewAttachIamSafe(ctx, "test", &dome9.AttachIamSafeArgs{
AwsCloudAccountId: pulumi.String("00000000-0000-0000-0000-000000000000"),
AwsGroupArn: pulumi.String("AWS_GROUP_ARN"),
AwsPolicyArn: pulumi.String("AWS_POLICY_ARN"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dome9 = Pulumi.Dome9;
return await Deployment.RunAsync(() =>
{
var test = new Dome9.AttachIamSafe("test", new()
{
AwsCloudAccountId = "00000000-0000-0000-0000-000000000000",
AwsGroupArn = "AWS_GROUP_ARN",
AwsPolicyArn = "AWS_POLICY_ARN",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dome9.AttachIamSafe;
import com.pulumi.dome9.AttachIamSafeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new AttachIamSafe("test", AttachIamSafeArgs.builder()
.awsCloudAccountId("00000000-0000-0000-0000-000000000000")
.awsGroupArn("AWS_GROUP_ARN")
.awsPolicyArn("AWS_POLICY_ARN")
.build());
}
}
resources:
test:
type: dome9:AttachIamSafe
properties:
awsCloudAccountId: 00000000-0000-0000-0000-000000000000
awsGroupArn: AWS_GROUP_ARN
awsPolicyArn: AWS_POLICY_ARN
Create AttachIamSafe Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AttachIamSafe(name: string, args: AttachIamSafeArgs, opts?: CustomResourceOptions);
@overload
def AttachIamSafe(resource_name: str,
args: AttachIamSafeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AttachIamSafe(resource_name: str,
opts: Optional[ResourceOptions] = None,
aws_cloud_account_id: Optional[str] = None,
aws_group_arn: Optional[str] = None,
aws_policy_arn: Optional[str] = None,
attach_iam_safe_id: Optional[str] = None)
func NewAttachIamSafe(ctx *Context, name string, args AttachIamSafeArgs, opts ...ResourceOption) (*AttachIamSafe, error)
public AttachIamSafe(string name, AttachIamSafeArgs args, CustomResourceOptions? opts = null)
public AttachIamSafe(String name, AttachIamSafeArgs args)
public AttachIamSafe(String name, AttachIamSafeArgs args, CustomResourceOptions options)
type: dome9:AttachIamSafe
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AttachIamSafeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AttachIamSafeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AttachIamSafeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttachIamSafeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AttachIamSafeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var attachIamSafeResource = new Dome9.AttachIamSafe("attachIamSafeResource", new()
{
AwsCloudAccountId = "string",
AwsGroupArn = "string",
AwsPolicyArn = "string",
AttachIamSafeId = "string",
});
example, err := dome9.NewAttachIamSafe(ctx, "attachIamSafeResource", &dome9.AttachIamSafeArgs{
AwsCloudAccountId: pulumi.String("string"),
AwsGroupArn: pulumi.String("string"),
AwsPolicyArn: pulumi.String("string"),
AttachIamSafeId: pulumi.String("string"),
})
var attachIamSafeResource = new AttachIamSafe("attachIamSafeResource", AttachIamSafeArgs.builder()
.awsCloudAccountId("string")
.awsGroupArn("string")
.awsPolicyArn("string")
.attachIamSafeId("string")
.build());
attach_iam_safe_resource = dome9.AttachIamSafe("attachIamSafeResource",
aws_cloud_account_id="string",
aws_group_arn="string",
aws_policy_arn="string",
attach_iam_safe_id="string")
const attachIamSafeResource = new dome9.AttachIamSafe("attachIamSafeResource", {
awsCloudAccountId: "string",
awsGroupArn: "string",
awsPolicyArn: "string",
attachIamSafeId: "string",
});
type: dome9:AttachIamSafe
properties:
attachIamSafeId: string
awsCloudAccountId: string
awsGroupArn: string
awsPolicyArn: string
AttachIamSafe Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AttachIamSafe resource accepts the following input properties:
- Aws
Cloud stringAccount Id - AWS cloud account to attach IAM safe to it.
- Aws
Group stringArn - AWS group arn.
- Aws
Policy stringArn - AWS policy arn.
- Attach
Iam stringSafe Id
- Aws
Cloud stringAccount Id - AWS cloud account to attach IAM safe to it.
- Aws
Group stringArn - AWS group arn.
- Aws
Policy stringArn - AWS policy arn.
- Attach
Iam stringSafe Id
- aws
Cloud StringAccount Id - AWS cloud account to attach IAM safe to it.
- aws
Group StringArn - AWS group arn.
- aws
Policy StringArn - AWS policy arn.
- attach
Iam StringSafe Id
- aws
Cloud stringAccount Id - AWS cloud account to attach IAM safe to it.
- aws
Group stringArn - AWS group arn.
- aws
Policy stringArn - AWS policy arn.
- attach
Iam stringSafe Id
- aws_
cloud_ straccount_ id - AWS cloud account to attach IAM safe to it.
- aws_
group_ strarn - AWS group arn.
- aws_
policy_ strarn - AWS policy arn.
- attach_
iam_ strsafe_ id
- aws
Cloud StringAccount Id - AWS cloud account to attach IAM safe to it.
- aws
Group StringArn - AWS group arn.
- aws
Policy StringArn - AWS policy arn.
- attach
Iam StringSafe Id
Outputs
All input properties are implicitly available as output properties. Additionally, the AttachIamSafe resource produces the following output properties:
Look up Existing AttachIamSafe Resource
Get an existing AttachIamSafe resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AttachIamSafeState, opts?: CustomResourceOptions): AttachIamSafe
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attach_iam_safe_id: Optional[str] = None,
aws_cloud_account_id: Optional[str] = None,
aws_group_arn: Optional[str] = None,
aws_policy_arn: Optional[str] = None,
mode: Optional[str] = None) -> AttachIamSafe
func GetAttachIamSafe(ctx *Context, name string, id IDInput, state *AttachIamSafeState, opts ...ResourceOption) (*AttachIamSafe, error)
public static AttachIamSafe Get(string name, Input<string> id, AttachIamSafeState? state, CustomResourceOptions? opts = null)
public static AttachIamSafe get(String name, Output<String> id, AttachIamSafeState state, CustomResourceOptions options)
resources: _: type: dome9:AttachIamSafe get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Attach
Iam stringSafe Id - Aws
Cloud stringAccount Id - AWS cloud account to attach IAM safe to it.
- Aws
Group stringArn - AWS group arn.
- Aws
Policy stringArn - AWS policy arn.
- Mode string
- Mode.
- Attach
Iam stringSafe Id - Aws
Cloud stringAccount Id - AWS cloud account to attach IAM safe to it.
- Aws
Group stringArn - AWS group arn.
- Aws
Policy stringArn - AWS policy arn.
- Mode string
- Mode.
- attach
Iam StringSafe Id - aws
Cloud StringAccount Id - AWS cloud account to attach IAM safe to it.
- aws
Group StringArn - AWS group arn.
- aws
Policy StringArn - AWS policy arn.
- mode String
- Mode.
- attach
Iam stringSafe Id - aws
Cloud stringAccount Id - AWS cloud account to attach IAM safe to it.
- aws
Group stringArn - AWS group arn.
- aws
Policy stringArn - AWS policy arn.
- mode string
- Mode.
- attach_
iam_ strsafe_ id - aws_
cloud_ straccount_ id - AWS cloud account to attach IAM safe to it.
- aws_
group_ strarn - AWS group arn.
- aws_
policy_ strarn - AWS policy arn.
- mode str
- Mode.
- attach
Iam StringSafe Id - aws
Cloud StringAccount Id - AWS cloud account to attach IAM safe to it.
- aws
Group StringArn - AWS group arn.
- aws
Policy StringArn - AWS policy arn.
- mode String
- Mode.
Import
Cloud account IAM safe can be imported; use <AWS CLOUD ACCOUNT ID>
as the import ID.
For example:
$ pulumi import dome9:index/attachIamSafe:AttachIamSafe test 00000000-0000-0000-0000-000000000000
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- dome9 dome9/terraform-provider-dome9
- License
- Notes
- This Pulumi package is based on the
dome9
Terraform Provider.