Class ArtifactSource
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.deploymentmanager.ArtifactSource
-
public class ArtifactSource extends com.pulumi.resources.CustomResource
The resource that defines the source location where the artifacts are located. API Version: 2019-11-01-preview. ## Example Usage ### Create artifact source ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.deploymentmanager.ArtifactSource; import com.pulumi.azurenative.deploymentmanager.ArtifactSourceArgs; 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 artifactSource = new ArtifactSource("artifactSource", ArtifactSourceArgs.builder() .artifactSourceName("myArtifactSource") .authentication(Map.ofEntries( Map.entry("sasUri", "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D"), Map.entry("type", "Sas") )) .location("centralus") .resourceGroupName("myResourceGroup") .sourceType("AzureStorage") .tags() .build()); } } ``` ### Create artifact source with artifact root, an offset into the storage container ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.deploymentmanager.ArtifactSource; import com.pulumi.azurenative.deploymentmanager.ArtifactSourceArgs; 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 artifactSource = new ArtifactSource("artifactSource", ArtifactSourceArgs.builder() .artifactRoot("1.0.0.0") .artifactSourceName("myArtifactSource") .authentication(Map.ofEntries( Map.entry("sasUri", "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D"), Map.entry("type", "Sas") )) .location("centralus") .resourceGroupName("myResourceGroup") .sourceType("AzureStorage") .tags() .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:deploymentmanager:ArtifactSource myArtifactSource /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/artifactSources/{artifactSourceName} ```
-
-
Constructor Summary
Constructors Constructor Description ArtifactSource(java.lang.String name)
ArtifactSource(java.lang.String name, ArtifactSourceArgs args)
ArtifactSource(java.lang.String name, ArtifactSourceArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.lang.String>>
artifactRoot()
com.pulumi.core.Output<SasAuthenticationResponse>
authentication()
static ArtifactSource
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
location()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
sourceType()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
ArtifactSource
public ArtifactSource(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ArtifactSource
public ArtifactSource(java.lang.String name, ArtifactSourceArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ArtifactSource
public ArtifactSource(java.lang.String name, ArtifactSourceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
artifactRoot
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> artifactRoot()
- Returns:
- The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the location of the artifacts. This can be used to differentiate different versions of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication property concatenated with this optional artifactRoot path forms the artifact source location where the artifacts are expected to be found.
-
authentication
public com.pulumi.core.Output<SasAuthenticationResponse> authentication()
- Returns:
- The authentication method to use to access the artifact source.
-
location
public com.pulumi.core.Output<java.lang.String> location()
- Returns:
- The geo-location where the resource lives
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the resource
-
sourceType
public com.pulumi.core.Output<java.lang.String> sourceType()
- Returns:
- The type of artifact source used.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Resource tags.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
-
get
public static ArtifactSource get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-