We recommend new projects start with resources from the AWS provider.
aws-native.datasync.LocationObjectStorage
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::DataSync::LocationObjectStorage.
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var locationObjectStorage = new AwsNative.DataSync.LocationObjectStorage("locationObjectStorage", new()
{
AgentArns = new[]
{
"arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs",
},
BucketName = "MyBucket",
ServerHostname = "MyServer@example.com",
ServerProtocol = AwsNative.DataSync.LocationObjectStorageServerProtocol.Https,
Subdirectory = "/MySubdirectory",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasync.NewLocationObjectStorage(ctx, "locationObjectStorage", &datasync.LocationObjectStorageArgs{
AgentArns: pulumi.StringArray{
pulumi.String("arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs"),
},
BucketName: pulumi.String("MyBucket"),
ServerHostname: pulumi.String("MyServer@example.com"),
ServerProtocol: datasync.LocationObjectStorageServerProtocolHttps,
Subdirectory: pulumi.String("/MySubdirectory"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
location_object_storage = aws_native.datasync.LocationObjectStorage("locationObjectStorage",
agent_arns=["arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs"],
bucket_name="MyBucket",
server_hostname="MyServer@example.com",
server_protocol=aws_native.datasync.LocationObjectStorageServerProtocol.HTTPS,
subdirectory="/MySubdirectory")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const locationObjectStorage = new aws_native.datasync.LocationObjectStorage("locationObjectStorage", {
agentArns: ["arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs"],
bucketName: "MyBucket",
serverHostname: "MyServer@example.com",
serverProtocol: aws_native.datasync.LocationObjectStorageServerProtocol.Https,
subdirectory: "/MySubdirectory",
});
Coming soon!
Create LocationObjectStorage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LocationObjectStorage(name: string, args: LocationObjectStorageArgs, opts?: CustomResourceOptions);
@overload
def LocationObjectStorage(resource_name: str,
args: LocationObjectStorageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LocationObjectStorage(resource_name: str,
opts: Optional[ResourceOptions] = None,
agent_arns: Optional[Sequence[str]] = None,
access_key: Optional[str] = None,
bucket_name: Optional[str] = None,
secret_key: Optional[str] = None,
server_certificate: Optional[str] = None,
server_hostname: Optional[str] = None,
server_port: Optional[int] = None,
server_protocol: Optional[LocationObjectStorageServerProtocol] = None,
subdirectory: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewLocationObjectStorage(ctx *Context, name string, args LocationObjectStorageArgs, opts ...ResourceOption) (*LocationObjectStorage, error)
public LocationObjectStorage(string name, LocationObjectStorageArgs args, CustomResourceOptions? opts = null)
public LocationObjectStorage(String name, LocationObjectStorageArgs args)
public LocationObjectStorage(String name, LocationObjectStorageArgs args, CustomResourceOptions options)
type: aws-native:datasync:LocationObjectStorage
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 LocationObjectStorageArgs
- 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 LocationObjectStorageArgs
- 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 LocationObjectStorageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocationObjectStorageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LocationObjectStorageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LocationObjectStorage 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 LocationObjectStorage resource accepts the following input properties:
- Agent
Arns List<string> - The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- Access
Key string - Optional. The access key is used if credentials are required to access the self-managed object storage server.
- Bucket
Name string - The name of the bucket on the self-managed object storage server.
- Secret
Key string - Optional. The secret key is used if credentials are required to access the self-managed object storage server.
- Server
Certificate string - X.509 PEM content containing a certificate authority or chain to trust.
- Server
Hostname string - The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
- Server
Port int - The port that your self-managed server accepts inbound network traffic on.
- Server
Protocol Pulumi.Aws Native. Data Sync. Location Object Storage Server Protocol - The protocol that the object storage server uses to communicate.
- Subdirectory string
- The subdirectory in the self-managed object storage server that is used to read data from.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Agent
Arns []string - The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- Access
Key string - Optional. The access key is used if credentials are required to access the self-managed object storage server.
- Bucket
Name string - The name of the bucket on the self-managed object storage server.
- Secret
Key string - Optional. The secret key is used if credentials are required to access the self-managed object storage server.
- Server
Certificate string - X.509 PEM content containing a certificate authority or chain to trust.
- Server
Hostname string - The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
- Server
Port int - The port that your self-managed server accepts inbound network traffic on.
- Server
Protocol LocationObject Storage Server Protocol - The protocol that the object storage server uses to communicate.
- Subdirectory string
- The subdirectory in the self-managed object storage server that is used to read data from.
- Tag
Args - An array of key-value pairs to apply to this resource.
- agent
Arns List<String> - The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- access
Key String - Optional. The access key is used if credentials are required to access the self-managed object storage server.
- bucket
Name String - The name of the bucket on the self-managed object storage server.
- secret
Key String - Optional. The secret key is used if credentials are required to access the self-managed object storage server.
- server
Certificate String - X.509 PEM content containing a certificate authority or chain to trust.
- server
Hostname String - The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
- server
Port Integer - The port that your self-managed server accepts inbound network traffic on.
- server
Protocol LocationObject Storage Server Protocol - The protocol that the object storage server uses to communicate.
- subdirectory String
- The subdirectory in the self-managed object storage server that is used to read data from.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- agent
Arns string[] - The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- access
Key string - Optional. The access key is used if credentials are required to access the self-managed object storage server.
- bucket
Name string - The name of the bucket on the self-managed object storage server.
- secret
Key string - Optional. The secret key is used if credentials are required to access the self-managed object storage server.
- server
Certificate string - X.509 PEM content containing a certificate authority or chain to trust.
- server
Hostname string - The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
- server
Port number - The port that your self-managed server accepts inbound network traffic on.
- server
Protocol LocationObject Storage Server Protocol - The protocol that the object storage server uses to communicate.
- subdirectory string
- The subdirectory in the self-managed object storage server that is used to read data from.
- Tag[]
- An array of key-value pairs to apply to this resource.
- agent_
arns Sequence[str] - The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- access_
key str - Optional. The access key is used if credentials are required to access the self-managed object storage server.
- bucket_
name str - The name of the bucket on the self-managed object storage server.
- secret_
key str - Optional. The secret key is used if credentials are required to access the self-managed object storage server.
- server_
certificate str - X.509 PEM content containing a certificate authority or chain to trust.
- server_
hostname str - The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
- server_
port int - The port that your self-managed server accepts inbound network traffic on.
- server_
protocol LocationObject Storage Server Protocol - The protocol that the object storage server uses to communicate.
- subdirectory str
- The subdirectory in the self-managed object storage server that is used to read data from.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- agent
Arns List<String> - The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
- access
Key String - Optional. The access key is used if credentials are required to access the self-managed object storage server.
- bucket
Name String - The name of the bucket on the self-managed object storage server.
- secret
Key String - Optional. The secret key is used if credentials are required to access the self-managed object storage server.
- server
Certificate String - X.509 PEM content containing a certificate authority or chain to trust.
- server
Hostname String - The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
- server
Port Number - The port that your self-managed server accepts inbound network traffic on.
- server
Protocol "HTTPS" | "HTTP" - The protocol that the object storage server uses to communicate.
- subdirectory String
- The subdirectory in the self-managed object storage server that is used to read data from.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LocationObjectStorage resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location
Arn string - The Amazon Resource Name (ARN) of the location that is created.
- Location
Uri string - The URL of the object storage location that was described.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location
Arn string - The Amazon Resource Name (ARN) of the location that is created.
- Location
Uri string - The URL of the object storage location that was described.
- id String
- The provider-assigned unique ID for this managed resource.
- location
Arn String - The Amazon Resource Name (ARN) of the location that is created.
- location
Uri String - The URL of the object storage location that was described.
- id string
- The provider-assigned unique ID for this managed resource.
- location
Arn string - The Amazon Resource Name (ARN) of the location that is created.
- location
Uri string - The URL of the object storage location that was described.
- id str
- The provider-assigned unique ID for this managed resource.
- location_
arn str - The Amazon Resource Name (ARN) of the location that is created.
- location_
uri str - The URL of the object storage location that was described.
- id String
- The provider-assigned unique ID for this managed resource.
- location
Arn String - The Amazon Resource Name (ARN) of the location that is created.
- location
Uri String - The URL of the object storage location that was described.
Supporting Types
LocationObjectStorageServerProtocol, LocationObjectStorageServerProtocolArgs
- Https
- HTTPS
- Http
- HTTP
- Location
Object Storage Server Protocol Https - HTTPS
- Location
Object Storage Server Protocol Http - HTTP
- Https
- HTTPS
- Http
- HTTP
- Https
- HTTPS
- Http
- HTTP
- HTTPS
- HTTPS
- HTTP
- HTTP
- "HTTPS"
- HTTPS
- "HTTP"
- HTTP
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.