aws.s3control.AccessGrantsInstance
Explore with Pulumi AI
Provides a resource to manage an S3 Access Grants instance, which serves as a logical grouping for access grants. You can have one S3 Access Grants instance per Region in your account.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.s3control.AccessGrantsInstance("example", {});
import pulumi
import pulumi_aws as aws
example = aws.s3control.AccessGrantsInstance("example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := s3control.NewAccessGrantsInstance(ctx, "example", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.S3Control.AccessGrantsInstance("example");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3control.AccessGrantsInstance;
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 example = new AccessGrantsInstance("example");
}
}
resources:
example:
type: aws:s3control:AccessGrantsInstance
AWS IAM Identity Center
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.s3control.AccessGrantsInstance("example", {identityCenterArn: "arn:aws:sso:::instance/ssoins-890759e9c7bfdc1d"});
import pulumi
import pulumi_aws as aws
example = aws.s3control.AccessGrantsInstance("example", identity_center_arn="arn:aws:sso:::instance/ssoins-890759e9c7bfdc1d")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := s3control.NewAccessGrantsInstance(ctx, "example", &s3control.AccessGrantsInstanceArgs{
IdentityCenterArn: pulumi.String("arn:aws:sso:::instance/ssoins-890759e9c7bfdc1d"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.S3Control.AccessGrantsInstance("example", new()
{
IdentityCenterArn = "arn:aws:sso:::instance/ssoins-890759e9c7bfdc1d",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3control.AccessGrantsInstance;
import com.pulumi.aws.s3control.AccessGrantsInstanceArgs;
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 example = new AccessGrantsInstance("example", AccessGrantsInstanceArgs.builder()
.identityCenterArn("arn:aws:sso:::instance/ssoins-890759e9c7bfdc1d")
.build());
}
}
resources:
example:
type: aws:s3control:AccessGrantsInstance
properties:
identityCenterArn: arn:aws:sso:::instance/ssoins-890759e9c7bfdc1d
Create AccessGrantsInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessGrantsInstance(name: string, args?: AccessGrantsInstanceArgs, opts?: CustomResourceOptions);
@overload
def AccessGrantsInstance(resource_name: str,
args: Optional[AccessGrantsInstanceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AccessGrantsInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
identity_center_arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAccessGrantsInstance(ctx *Context, name string, args *AccessGrantsInstanceArgs, opts ...ResourceOption) (*AccessGrantsInstance, error)
public AccessGrantsInstance(string name, AccessGrantsInstanceArgs? args = null, CustomResourceOptions? opts = null)
public AccessGrantsInstance(String name, AccessGrantsInstanceArgs args)
public AccessGrantsInstance(String name, AccessGrantsInstanceArgs args, CustomResourceOptions options)
type: aws:s3control:AccessGrantsInstance
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 AccessGrantsInstanceArgs
- 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 AccessGrantsInstanceArgs
- 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 AccessGrantsInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessGrantsInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessGrantsInstanceArgs
- 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 accessGrantsInstanceResource = new Aws.S3Control.AccessGrantsInstance("accessGrantsInstanceResource", new()
{
AccountId = "string",
IdentityCenterArn = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := s3control.NewAccessGrantsInstance(ctx, "accessGrantsInstanceResource", &s3control.AccessGrantsInstanceArgs{
AccountId: pulumi.String("string"),
IdentityCenterArn: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var accessGrantsInstanceResource = new AccessGrantsInstance("accessGrantsInstanceResource", AccessGrantsInstanceArgs.builder()
.accountId("string")
.identityCenterArn("string")
.tags(Map.of("string", "string"))
.build());
access_grants_instance_resource = aws.s3control.AccessGrantsInstance("accessGrantsInstanceResource",
account_id="string",
identity_center_arn="string",
tags={
"string": "string",
})
const accessGrantsInstanceResource = new aws.s3control.AccessGrantsInstance("accessGrantsInstanceResource", {
accountId: "string",
identityCenterArn: "string",
tags: {
string: "string",
},
});
type: aws:s3control:AccessGrantsInstance
properties:
accountId: string
identityCenterArn: string
tags:
string: string
AccessGrantsInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AccessGrantsInstance resource accepts the following input properties:
- Account
Id string - Identity
Center stringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Account
Id string - Identity
Center stringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- account
Id String - identity
Center StringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- account
Id string - identity
Center stringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- account_
id str - identity_
center_ strarn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- account
Id String - identity
Center StringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessGrantsInstance resource produces the following output properties:
- Access
Grants stringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- Access
Grants stringInstance Id - Unique ID of the S3 Access Grants instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Center stringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Access
Grants stringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- Access
Grants stringInstance Id - Unique ID of the S3 Access Grants instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Center stringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access
Grants StringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access
Grants StringInstance Id - Unique ID of the S3 Access Grants instance.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Center StringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access
Grants stringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access
Grants stringInstance Id - Unique ID of the S3 Access Grants instance.
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Center stringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access_
grants_ strinstance_ arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access_
grants_ strinstance_ id - Unique ID of the S3 Access Grants instance.
- id str
- The provider-assigned unique ID for this managed resource.
- identity_
center_ strapplication_ arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access
Grants StringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access
Grants StringInstance Id - Unique ID of the S3 Access Grants instance.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Center StringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing AccessGrantsInstance Resource
Get an existing AccessGrantsInstance 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?: AccessGrantsInstanceState, opts?: CustomResourceOptions): AccessGrantsInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_grants_instance_arn: Optional[str] = None,
access_grants_instance_id: Optional[str] = None,
account_id: Optional[str] = None,
identity_center_application_arn: Optional[str] = None,
identity_center_arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> AccessGrantsInstance
func GetAccessGrantsInstance(ctx *Context, name string, id IDInput, state *AccessGrantsInstanceState, opts ...ResourceOption) (*AccessGrantsInstance, error)
public static AccessGrantsInstance Get(string name, Input<string> id, AccessGrantsInstanceState? state, CustomResourceOptions? opts = null)
public static AccessGrantsInstance get(String name, Output<String> id, AccessGrantsInstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Access
Grants stringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- Access
Grants stringInstance Id - Unique ID of the S3 Access Grants instance.
- Account
Id string - Identity
Center stringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- Identity
Center stringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Access
Grants stringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- Access
Grants stringInstance Id - Unique ID of the S3 Access Grants instance.
- Account
Id string - Identity
Center stringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- Identity
Center stringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access
Grants StringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access
Grants StringInstance Id - Unique ID of the S3 Access Grants instance.
- account
Id String - identity
Center StringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- identity
Center StringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access
Grants stringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access
Grants stringInstance Id - Unique ID of the S3 Access Grants instance.
- account
Id string - identity
Center stringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- identity
Center stringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access_
grants_ strinstance_ arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access_
grants_ strinstance_ id - Unique ID of the S3 Access Grants instance.
- account_
id str - identity_
center_ strapplication_ arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- identity_
center_ strarn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- access
Grants StringInstance Arn - Amazon Resource Name (ARN) of the S3 Access Grants instance.
- access
Grants StringInstance Id - Unique ID of the S3 Access Grants instance.
- account
Id String - identity
Center StringApplication Arn - The ARN of the AWS IAM Identity Center instance application; a subresource of the original Identity Center instance.
- identity
Center StringArn - The ARN of the AWS IAM Identity Center instance associated with the S3 Access Grants instance.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import S3 Access Grants instances using the account_id
. For example:
$ pulumi import aws:s3control/accessGrantsInstance:AccessGrantsInstance example 123456789012
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.