PatchSourceProperty Struct
PatchSource is the property type for the Sources resource of the AWS::SSM::PatchBaseline resource.
The AWS CloudFormation AWS::SSM::PatchSource resource is used to provide information about the patches to use to update target instances, including target operating systems and source repository. Applies to Linux managed nodes only.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const patchSourceProperty: ssm.CfnPatchBaseline.PatchSourceProperty = {
configuration: 'configuration',
name: 'name',
products: ['products'],
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ssm as ssm
patch_source_property = ssm.CfnPatchBaseline.PatchSourceProperty(
configuration="configuration",
name="name",
products=["products"]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;
PatchSourceProperty patchSourceProperty = PatchSourceProperty.builder()
.configuration("configuration")
.name("name")
.products(List.of("products"))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SSM;
var patchSourceProperty = new PatchSourceProperty {
Configuration = "configuration",
Name = "name",
Products = new [] { "products" }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
patchSourceProperty := &PatchSourceProperty{
Configuration: jsii.String("configuration"),
Name: jsii.String("name"),
Products: []*string{
jsii.String("products"),
},
}
Properties
configurationoptionalstringconfigurationoptionalstrconfigurationoptionalStringConfigurationoptionalstringConfigurationoptional*string#notes
Example for yum repositories
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) on the man7.org website.
Examples for Ubuntu Server and Debian Server
deb http://security.ubuntu.com/ubuntu jammy main
deb https://site.example.com/debian distribution component1 component2 component3
Repo information for Ubuntu Server repositories must be specifed in a single line. For more examples and information, see jammy (5) sources.list.5.gz on the Ubuntu Server Manuals website and sources.list format on the Debian Wiki .
productsoptionalstring[]productsoptionaltyping.List[str]productsoptionalList<String>Productsoptionalstring[]Productsoptional*[]*string#